mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
Hide tile preview when cancelling a drag with Escape
As the tile preview is shown or hidden when a window is dragged around, it may stick around if the drag operation is cancelled. Make sure that the preview is hidden in this case. https://bugzilla.gnome.org/show_bug.cgi?id=639988
This commit is contained in:
parent
53d6938b55
commit
bca610ed50
@ -1551,6 +1551,10 @@ process_mouse_move_resize_grab (MetaDisplay *display,
|
||||
|
||||
if (keysym == XK_Escape)
|
||||
{
|
||||
/* Hide the tiling preview if necessary */
|
||||
if (window->tile_mode != META_TILE_NONE)
|
||||
meta_screen_tile_preview_hide (screen);
|
||||
|
||||
/* End move or resize and restore to original state. If the
|
||||
* window was a maximized window that had been "shaken loose" we
|
||||
* need to remaximize it. In normal cases, we need to do a
|
||||
|
Loading…
Reference in New Issue
Block a user