summaryrefslogtreecommitdiffstats
path: root/twin/killwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-07 15:24:47 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-07 15:24:47 -0500
commit443169bdcb47dfecf18da981119342b9f19eb84f (patch)
treedca3515302311ba7792b257278ee34c6b9e33328 /twin/killwindow.cpp
parentb5bb40fa897dd69a1156b2e15054b5967cc97933 (diff)
downloadtdebase-443169bdcb47dfecf18da981119342b9f19eb84f.tar.gz
tdebase-443169bdcb47dfecf18da981119342b9f19eb84f.zip
Update calls to deprecated XKeycodeToKeysym function
Diffstat (limited to 'twin/killwindow.cpp')
-rw-r--r--twin/killwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/twin/killwindow.cpp b/twin/killwindow.cpp
index fb5486546..7562f2886 100644
--- a/twin/killwindow.cpp
+++ b/twin/killwindow.cpp
@@ -15,6 +15,7 @@ License. See the file "COPYING" for the exact licensing terms.
#include "killwindow.h"
#include <tqcursor.h>
#include <X11/Xlib.h>
+#include <X11/XKBlib.h>
#include <X11/keysym.h>
#include <X11/keysymdef.h>
#include <X11/cursorfont.h>
@@ -61,7 +62,7 @@ void KillWindow::start()
if (ev.type == KeyPress)
{
- int kc = XKeycodeToKeysym(tqt_xdisplay(), ev.xkey.keycode, 0);
+ int kc = XkbKeycodeToKeysym(tqt_xdisplay(), ev.xkey.keycode, 0, 0);
int mx = 0;
int my = 0;
return_pressed = (kc == XK_Return) || (kc == XK_space);