window: Remove unused condition

IS_WAYLAND_RESIZE will always result in a RESIZED result, at least.
This commit is contained in:
Jasper St. Pierre 2014-04-28 17:40:42 -04:00
parent 8b0747786a
commit 9b760dbbab

View File

@ -4197,7 +4197,6 @@ meta_window_move_resize_internal (MetaWindow *window,
gboolean is_configure_request; gboolean is_configure_request;
gboolean do_gravity_adjust; gboolean do_gravity_adjust;
gboolean is_user_action; gboolean is_user_action;
gboolean is_wayland_resize;
gboolean did_placement; gboolean did_placement;
/* used for the configure request, but may not be final /* used for the configure request, but may not be final
* destination due to StaticGravity etc. * destination due to StaticGravity etc.
@ -4213,7 +4212,6 @@ meta_window_move_resize_internal (MetaWindow *window,
is_configure_request = (flags & META_IS_CONFIGURE_REQUEST) != 0; is_configure_request = (flags & META_IS_CONFIGURE_REQUEST) != 0;
do_gravity_adjust = (flags & META_DO_GRAVITY_ADJUST) != 0; do_gravity_adjust = (flags & META_DO_GRAVITY_ADJUST) != 0;
is_user_action = (flags & META_IS_USER_ACTION) != 0; is_user_action = (flags & META_IS_USER_ACTION) != 0;
is_wayland_resize = (flags & META_IS_WAYLAND_RESIZE) != 0;
/* The action has to be a move, a resize or the wayland client /* The action has to be a move, a resize or the wayland client
* acking our choice of size. * acking our choice of size.
@ -4306,7 +4304,7 @@ meta_window_move_resize_internal (MetaWindow *window,
g_signal_emit (window, window_signals[SIZE_CHANGED], 0); g_signal_emit (window, window_signals[SIZE_CHANGED], 0);
if ((result & (META_MOVE_RESIZE_RESULT_MOVED | META_MOVE_RESIZE_RESULT_RESIZED)) != 0 || if ((result & (META_MOVE_RESIZE_RESULT_MOVED | META_MOVE_RESIZE_RESULT_RESIZED)) != 0 ||
did_placement || is_wayland_resize) did_placement)
{ {
int newx, newy; int newx, newy;
meta_window_get_position (window, &newx, &newy); meta_window_get_position (window, &newx, &newy);