[mutter] Hide tile preview when cancelling a drag with Escape
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Hide tile preview when cancelling a drag with Escape
- Date: Thu, 20 Jan 2011 17:50:32 +0000 (UTC)
commit bca610ed50e143c06cbac988c1bd7dc2f47433f6
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jan 13 17:58:11 2011 +0100
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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 8e4f3a7..e3ea1e8 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]