Get Win+Tabbing to work when it's associated with Super instead of Meta.

svn path=/trunk/kdebase/kwin/; revision=140912
This commit is contained in:
Ellis Whitehead 2002-03-04 12:37:56 +00:00
parent d546d25e68
commit 779bac3917

View file

@ -822,7 +822,7 @@ bool areKeySymXsDepressed( bool bAll, int nKeySyms, ... )
bool areModKeysDepressed( const KShortcut& cut ) bool areModKeysDepressed( const KShortcut& cut )
{ {
uint rgKeySyms[8]; uint rgKeySyms[10];
int nKeySyms = 0; int nKeySyms = 0;
int mod = cut.seq(0).key(0).modFlags(); int mod = cut.seq(0).key(0).modFlags();
@ -839,6 +839,10 @@ bool areModKeysDepressed( const KShortcut& cut )
rgKeySyms[nKeySyms++] = XK_Alt_R; rgKeySyms[nKeySyms++] = XK_Alt_R;
} }
if( mod & KKey::WIN ) { 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_L;
rgKeySyms[nKeySyms++] = XK_Meta_R; rgKeySyms[nKeySyms++] = XK_Meta_R;
} }