From 779bac3917f74ed03f752de5a165c301b2ab5187 Mon Sep 17 00:00:00 2001 From: Ellis Whitehead Date: Mon, 4 Mar 2002 12:37:56 +0000 Subject: [PATCH] Get Win+Tabbing to work when it's associated with Super instead of Meta. svn path=/trunk/kdebase/kwin/; revision=140912 --- workspace.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 3ea946d9cc..3fb7fd87e0 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -822,7 +822,7 @@ bool areKeySymXsDepressed( bool bAll, int nKeySyms, ... ) bool areModKeysDepressed( const KShortcut& cut ) { - uint rgKeySyms[8]; + uint rgKeySyms[10]; int nKeySyms = 0; int mod = cut.seq(0).key(0).modFlags(); @@ -839,6 +839,10 @@ bool areModKeysDepressed( const KShortcut& cut ) rgKeySyms[nKeySyms++] = XK_Alt_R; } if( mod & KKey::WIN ) { + // HACK: it would take a lot of code to determine whether the Win key + // is associated with Super or Meta, so check for both + rgKeySyms[nKeySyms++] = XK_Super_L; + rgKeySyms[nKeySyms++] = XK_Super_R; rgKeySyms[nKeySyms++] = XK_Meta_L; rgKeySyms[nKeySyms++] = XK_Meta_R; }