summaryrefslogtreecommitdiffstats
path: root/twin/workspace.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-08-07 15:24:47 -0500
committerTimothy Pearson <[email protected]>2012-08-07 15:24:47 -0500
commit443169bdcb47dfecf18da981119342b9f19eb84f (patch)
treedca3515302311ba7792b257278ee34c6b9e33328 /twin/workspace.cpp
parentb5bb40fa897dd69a1156b2e15054b5967cc97933 (diff)
downloadtdebase-443169bdcb47dfecf18da981119342b9f19eb84f.tar.gz
tdebase-443169bdcb47dfecf18da981119342b9f19eb84f.zip
Update calls to deprecated XKeycodeToKeysym function
Diffstat (limited to 'twin/workspace.cpp')
-rw-r--r--twin/workspace.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/twin/workspace.cpp b/twin/workspace.cpp
index 7bd194f2d..6781e912e 100644
--- a/twin/workspace.cpp
+++ b/twin/workspace.cpp
@@ -40,6 +40,7 @@ License. See the file "COPYING" for the exact licensing terms.
#include "group.h"
#include "rules.h"
+#include <X11/XKBlib.h>
#include <X11/extensions/shape.h>
#include <X11/keysym.h>
#include <X11/keysymdef.h>
@@ -2180,7 +2181,7 @@ bool Workspace::keyPressMouseEmulation( XKeyEvent& ev )
{
if ( root != tqt_xrootwin() )
return FALSE;
- int kc = XKeycodeToKeysym(tqt_xdisplay(), ev.keycode, 0);
+ int kc = XkbKeycodeToKeysym(tqt_xdisplay(), ev.keycode, 0, 0);
int km = ev.state & (ControlMask | Mod1Mask | ShiftMask);
bool is_control = km & ControlMask;