mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
window-wayland: Split an if statement in two
This commit is contained in:
parent
2209eac2bf
commit
0f47eae33a
@ -162,14 +162,17 @@ 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
|
||||
meta_window_wayland_init (MetaWindowWayland *window_wayland)
|
||||
|
Loading…
Reference in New Issue
Block a user