Compared a Qt key code to an X key code and lost the ability to use Escape

to abort switch between programs/desktops mode.  Fixed.

svn path=/trunk/kdebase/kwin/; revision=100319
This commit is contained in:
Ellis Whitehead 2001-06-04 06:43:31 +00:00
parent a8fb7ecd4a
commit e2b6a56386

View file

@ -937,7 +937,7 @@ bool Workspace::keyPress(XKeyEvent key)
} }
if (control_grab || tab_grab){ if (control_grab || tab_grab){
if ((keyCombQt & 0xffff) == XK_Escape){ if ((keyCombQt & 0xffff) == Qt::Key_Escape){
XUngrabKeyboard(qt_xdisplay(), kwin_time); XUngrabKeyboard(qt_xdisplay(), kwin_time);
XUngrabPointer( qt_xdisplay(), kwin_time); XUngrabPointer( qt_xdisplay(), kwin_time);
tab_box->hide(); tab_box->hide();