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

The expected_rect is going to die.
This commit is contained in:
Jasper St. Pierre 2014-04-16 16:25:32 -04:00
parent 260b6d02f2
commit 0797206cc2

View File

@ -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,