mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -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;
|
should_move = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (should_move && (constrained_rect.x != window->rect.x ||
|
if (should_move)
|
||||||
constrained_rect.y != window->rect.y))
|
|
||||||
{
|
{
|
||||||
*result |= META_MOVE_RESIZE_RESULT_MOVED;
|
if (constrained_rect.x != window->rect.x ||
|
||||||
window->rect.x = constrained_rect.x;
|
constrained_rect.y != window->rect.y)
|
||||||
window->rect.y = constrained_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