diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-10-27 16:54:33 -0700 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2015-01-08 14:12:52 +0100 |
commit | 9cdb9e648ae1991e8aafb8abcb1c6a825967913b (patch) | |
tree | ae5ffc5f33b1b17d283abfa4cb4198ffcfe548d9 | |
parent | c7557b95d6bce7deabe66ba22aa0921acda672c1 (diff) | |
download | gtk+-9cdb9e648ae1991e8aafb8abcb1c6a825967913b.tar.gz |
x11: Scale the frame extents as well
(cherry picked from commit 0f79cb3d11fbf7dd1d0056b6ba74cf5210b1aa7e)
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 5754404111..55b7de4dab 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -3628,8 +3628,14 @@ gdk_x11_window_set_shadow_width (GdkWindow *window, int top, int bottom) { + GdkWindowImplX11 *impl = GDK_WINDOW_IMPL_X11 (window->impl); Atom frame_extents; - gulong data[4] = { left, right, top, bottom }; + gulong data[4] = { + left * impl->window_scale, + right * impl->window_scale, + top * impl->window_scale, + bottom * impl->window_scale + }; frame_extents = gdk_x11_get_xatom_by_name_for_display (gdk_window_get_display (window), "_GTK_FRAME_EXTENTS"); |