[mutter] wayland: Fix the sign for the geometry coordinates



commit 5621d3c0c70cd76bd5e19c6c58525c8bb8afbc5e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jul 17 16:42:41 2014 -0400

    wayland: Fix the sign for the geometry coordinates
    
    I got the spaces for window geometry coordinates vs. surface coordinates
    mixed up.

 src/wayland/window-wayland.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c
index 8b512b3..7c80c24 100644
--- a/src/wayland/window-wayland.c
+++ b/src/wayland/window-wayland.c
@@ -348,8 +348,8 @@ meta_window_wayland_move_resize (MetaWindow    *window,
   MetaMoveResizeFlags flags;
 
   /* XXX: Find a better place to store the window geometry offsets. */
-  window->custom_frame_extents.left = -new_geom.x;
-  window->custom_frame_extents.top = -new_geom.y;
+  window->custom_frame_extents.left = new_geom.x;
+  window->custom_frame_extents.top = new_geom.y;
 
   flags = META_IS_WAYLAND_RESIZE;
 


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