From e2b6a56386e3cb291fce77a803462ea8e80b338d Mon Sep 17 00:00:00 2001 From: Ellis Whitehead Date: Mon, 4 Jun 2001 06:43:31 +0000 Subject: [PATCH] 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 --- workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index eddaabb199..67fe1e36cc 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -937,7 +937,7 @@ bool Workspace::keyPress(XKeyEvent key) } if (control_grab || tab_grab){ - if ((keyCombQt & 0xffff) == XK_Escape){ + if ((keyCombQt & 0xffff) == Qt::Key_Escape){ XUngrabKeyboard(qt_xdisplay(), kwin_time); XUngrabPointer( qt_xdisplay(), kwin_time); tab_box->hide();