[mutter] window: Use the window's rect for checking whether this is a resize



commit 0797206cc2da4bba4525b8ff520d542062647098
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Apr 16 16:25:32 2014 -0400

    window: Use the window's rect for checking whether this is a resize
    
    The expected_rect is going to die.

 src/core/window.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index e610398..afedcfb 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4409,8 +4409,7 @@ meta_window_move_resize_wayland (MetaWindow *window,
 
   if (x != window->expected_rect.x || y != window->expected_rect.y)
     flags |= META_IS_MOVE_ACTION;
-  if (width != window->expected_rect.width ||
-      height != window->expected_rect.height)
+  if (width != window->rect.width || height != window->rect.height)
     flags |= META_IS_RESIZE_ACTION;
 
   meta_window_move_resize_internal (window, flags, NorthWestGravity,


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