mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
window-wayland: Split an if statement in two
This commit is contained in:
parent
2209eac2bf
commit
0f47eae33a
@ -162,13 +162,16 @@ 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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user