summaryrefslogtreecommitdiff
path: root/src/core/window-private.h
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2013-11-15 17:37:50 -0500
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-04-13 16:07:20 +0300
commit3c6e269ba39c3dac99a38301fa9b799c3c202043 (patch)
tree46bf2efda8f0ad4898855ac7bbbe4e1dab08b449 /src/core/window-private.h
parent071d43f0bf332f7ae144ebda4453a8c88dc9bd41 (diff)
downloadmetacity-3c6e269ba39c3dac99a38301fa9b799c3c202043.tar.gz
frame: cache borders
Cache the computed border size so we can fetch the border size at any time without worrying that we'll be spending too much time in the theme code (in some cases we might allocate a PangoFontDescription or do other significant work.) The main effort here is clearing the cache when various bits of window state change that could potentially affect the computed borders. https://bugzilla.gnome.org/show_bug.cgi?id=707194
Diffstat (limited to 'src/core/window-private.h')
-rw-r--r--src/core/window-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/window-private.h b/src/core/window-private.h
index 1f201bee..0d917b02 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -649,6 +649,8 @@ const char* meta_window_get_startup_id (MetaWindow *window);
void meta_window_recalc_features (MetaWindow *window);
void meta_window_recalc_window_type (MetaWindow *window);
+void meta_window_frame_size_changed (MetaWindow *window);
+
void meta_window_stack_just_above (MetaWindow *window,
MetaWindow *above_this_one);
void meta_window_stack_just_below (MetaWindow *window,