mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
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:
parent
260b6d02f2
commit
0797206cc2
@ -4409,8 +4409,7 @@ meta_window_move_resize_wayland (MetaWindow *window,
|
|||||||
|
|
||||||
if (x != window->expected_rect.x || y != window->expected_rect.y)
|
if (x != window->expected_rect.x || y != window->expected_rect.y)
|
||||||
flags |= META_IS_MOVE_ACTION;
|
flags |= META_IS_MOVE_ACTION;
|
||||||
if (width != window->expected_rect.width ||
|
if (width != window->rect.width || height != window->rect.height)
|
||||||
height != window->expected_rect.height)
|
|
||||||
flags |= META_IS_RESIZE_ACTION;
|
flags |= META_IS_RESIZE_ACTION;
|
||||||
|
|
||||||
meta_window_move_resize_internal (window, flags, NorthWestGravity,
|
meta_window_move_resize_internal (window, flags, NorthWestGravity,
|
||||||
|
Loading…
Reference in New Issue
Block a user