[gtk+] wayland: Fix get_frame_extents



commit 4eb7dac75bb6aac66e7cfd1d9219c9390cbf6852
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 17 15:41:08 2014 -0400

    wayland: Fix get_frame_extents
    
    We need to traverse up the hierarchy for windows here. Just use
    our existing helper method for this.

 gdk/wayland/gdkwindow-wayland.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index c419714..0b502fd 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1667,8 +1667,7 @@ static void
 gdk_wayland_window_get_frame_extents (GdkWindow    *window,
                                       GdkRectangle *rect)
 {
-  rect->x = window->x;
-  rect->y = window->y;
+  gdk_wayland_window_get_fake_root_coords (window, &rect->x, &rect->y);
   rect->width = window->width;
   rect->height = window->height;
 }


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