mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
Fix behavior of the window resize popup to only appear when resizing
This patch reverts part of commit 94f6479, which accidentally removed a section of code and introduced this bug. https://bugzilla.gnome.org/show_bug.cgi?id=598603
This commit is contained in:
parent
3fed2ab64d
commit
dacea8edf9
@ -8454,6 +8454,32 @@ meta_window_refresh_resize_popup (MetaWindow *window)
|
||||
if (window->display->grab_window != window)
|
||||
return;
|
||||
|
||||
switch (window->display->grab_op)
|
||||
{
|
||||
case META_GRAB_OP_RESIZING_SE:
|
||||
case META_GRAB_OP_RESIZING_S:
|
||||
case META_GRAB_OP_RESIZING_SW:
|
||||
case META_GRAB_OP_RESIZING_N:
|
||||
case META_GRAB_OP_RESIZING_NE:
|
||||
case META_GRAB_OP_RESIZING_NW:
|
||||
case META_GRAB_OP_RESIZING_W:
|
||||
case META_GRAB_OP_RESIZING_E:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_S:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_N:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_W:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_E:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_SE:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_NE:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_SW:
|
||||
case META_GRAB_OP_KEYBOARD_RESIZING_NW:
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Not resizing */
|
||||
return;
|
||||
}
|
||||
|
||||
if (window->display->grab_resize_popup == NULL)
|
||||
{
|
||||
if (window->size_hints.width_inc > 1 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user