mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
window-wayland: Split an if statement in two
This commit is contained in:
parent
2209eac2bf
commit
0f47eae33a
@ -162,12 +162,15 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
|
||||
should_move = TRUE;
|
||||
}
|
||||
|
||||
if (should_move && (constrained_rect.x != window->rect.x ||
|
||||
constrained_rect.y != window->rect.y))
|
||||
if (should_move)
|
||||
{
|
||||
*result |= META_MOVE_RESIZE_RESULT_MOVED;
|
||||
window->rect.x = constrained_rect.x;
|
||||
window->rect.y = constrained_rect.y;
|
||||
if (constrained_rect.x != window->rect.x ||
|
||||
constrained_rect.y != window->rect.y)
|
||||
{
|
||||
*result |= META_MOVE_RESIZE_RESULT_MOVED;
|
||||
window->rect.x = constrained_rect.x;
|
||||
window->rect.y = constrained_rect.y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user