From bca610ed50e143c06cbac988c1bd7dc2f47433f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 13 Jan 2011 17:58:11 +0100 Subject: [PATCH] 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 --- src/core/keybindings.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 8e4f3a7dc..e3ea1e8aa 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -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