mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
display: Use grab_op_is_moving_or_resizing
This commit is contained in:
parent
f9305be450
commit
9ca0349c2b
@ -1999,8 +1999,7 @@ meta_display_end_grab_op (MetaDisplay *display,
|
|||||||
|
|
||||||
if (display->grab_window != NULL &&
|
if (display->grab_window != NULL &&
|
||||||
!meta_prefs_get_raise_on_click () &&
|
!meta_prefs_get_raise_on_click () &&
|
||||||
(meta_grab_op_is_moving (display->grab_op) ||
|
meta_grab_op_is_moving_or_resizing (display->grab_op))
|
||||||
meta_grab_op_is_resizing (display->grab_op)))
|
|
||||||
{
|
{
|
||||||
/* Only raise the window in orthogonal raise
|
/* Only raise the window in orthogonal raise
|
||||||
* ('do-not-raise-on-click') mode if the user didn't try to move
|
* ('do-not-raise-on-click') mode if the user didn't try to move
|
||||||
@ -2013,8 +2012,7 @@ meta_display_end_grab_op (MetaDisplay *display,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If this was a move or resize clear out the edge cache */
|
/* If this was a move or resize clear out the edge cache */
|
||||||
if (meta_grab_op_is_resizing (display->grab_op) ||
|
if (meta_grab_op_is_moving_or_resizing (display->grab_op))
|
||||||
meta_grab_op_is_moving (display->grab_op))
|
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_WINDOW_OPS,
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
||||||
"Clearing out the edges for resistance/snapping");
|
"Clearing out the edges for resistance/snapping");
|
||||||
|
Loading…
Reference in New Issue
Block a user