window-wayland: Split an if statement in two

This commit is contained in:
Jasper St. Pierre 2014-04-28 15:50:40 -04:00
parent 2209eac2bf
commit 0f47eae33a

View File

@ -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;
}
} }
} }