gdkwindow: store shadow sizes

https://bugzilla.gnome.org/show_bug.cgi?id=756579
This commit is contained in:
William Hua 2016-06-16 11:20:35 -04:00
parent 2235f211e3
commit 0a5bee2751
2 changed files with 9 additions and 0 deletions

View File

@ -356,6 +356,10 @@ struct _GdkWindow
gint abs_x, abs_y; /* Absolute offset in impl */
gint width, height;
gint shadow_top;
gint shadow_left;
gint shadow_right;
gint shadow_bottom;
guint num_offscreen_children;

View File

@ -11771,6 +11771,11 @@ gdk_window_set_shadow_width (GdkWindow *window,
g_return_if_fail (!GDK_WINDOW_DESTROYED (window));
g_return_if_fail (left >= 0 && right >= 0 && top >= 0 && bottom >= 0);
window->shadow_top = top;
window->shadow_left = left;
window->shadow_right = right;
window->shadow_bottom = bottom;
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
if (impl_class->set_shadow_width)