[gtk+/wip/window-scales] x11: Properly resize child native windows



commit 1c860f870a82ac5ceacaf6f1451404befef6feb1
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 28 10:38:43 2013 +0200

    x11: Properly resize child native windows

 gdk/x11/gdkgeometry-x11.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkgeometry-x11.c b/gdk/x11/gdkgeometry-x11.c
index a09a81b..3f8c8c5 100644
--- a/gdk/x11/gdkgeometry-x11.c
+++ b/gdk/x11/gdkgeometry-x11.c
@@ -75,7 +75,8 @@ _gdk_x11_window_move_resize_child (GdkWindow *window,
                      GDK_WINDOW_XID (window),
                      (window->x + window->parent->abs_x) * impl->window_scale,
                      (window->y + window->parent->abs_y) * impl->window_scale,
-                     width, height);
+                     width * impl->window_scale,
+                     height * impl->window_scale);
   _gdk_x11_window_tmp_reset_parent_bg (window);
   _gdk_x11_window_tmp_reset_bg (window, TRUE);
 }


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