[gtk+/gtk-3-14] x11: Scale the frame extents as well



commit 9cdb9e648ae1991e8aafb8abcb1c6a825967913b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Oct 27 16:54:33 2014 -0700

    x11: Scale the frame extents as well
    
    (cherry picked from commit 0f79cb3d11fbf7dd1d0056b6ba74cf5210b1aa7e)

 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 5754404..55b7de4 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");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]