[mutter/meego-1.0: 13/30] [Alt+Tab handling] Do not cancel Alt+Tab grab due to Shift key events



commit 39fc1e4a313c60cd266b522c0bbbb50eaa520f10
Author: Tomas Frydrych <tf linux intel com>
Date:   Thu Feb 4 07:53:01 2010 +0000

    [Alt+Tab handling] Do not cancel Alt+Tab grab due to Shift key events
    
    If the user just presses Shift during Alt+Tab grab, we need to keep the grab
    in place to allow the custom Alt+Tab handler to deal with what is simply a
    change of tabbing direction.

 src/core/keybindings.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index aeccf3c..3e6dbb0 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -2109,6 +2109,16 @@ process_tab_grab (MetaDisplay *display,
               return TRUE;
             }
           break;
+        case META_KEYBINDING_ACTION_NONE:
+          {
+            /*
+             * If this is simply user pressing the Shift key, we do not want
+             * to cancel the grab.
+             */
+            if (keysym == XK_Shift_L || keysym == XK_Shift_R)
+              return TRUE;
+          }
+
         default:
           break;
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]