summaryrefslogtreecommitdiff
path: root/src/bin/engine_software_xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/engine_software_xlib.c')
-rw-r--r--src/bin/engine_software_xlib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/engine_software_xlib.c b/src/bin/engine_software_xlib.c
index e2ba397..0273796 100644
--- a/src/bin/engine_software_xlib.c
+++ b/src/bin/engine_software_xlib.c
@@ -1,6 +1,7 @@
1#include "main.h" 1#include "main.h"
2 2
3#include <X11/Xlib.h> 3#include <X11/Xlib.h>
4#include <X11/XKBlib.h>
4#include <X11/Xutil.h> 5#include <X11/Xutil.h>
5#include <X11/Xatom.h> 6#include <X11/Xatom.h>
6#include <Evas_Engine_Software_X11.h> 7#include <Evas_Engine_Software_X11.h>
@@ -161,7 +162,7 @@ engine_software_xlib_loop(void)
161 evas_event_feed_mouse_out(evas, 0, NULL); 162 evas_event_feed_mouse_out(evas, 0, NULL);
162 break; 163 break;
163 case KeyPress: 164 case KeyPress:
164 ks = XKeycodeToKeysym(ev.xkey.display, ev.xkey.keycode, 0); 165 ks = XkbKeycodeToKeysym(ev.xkey.display, ev.xkey.keycode, 0, 0);
165 kstr = XKeysymToString(ks); 166 kstr = XKeysymToString(ks);
166 if (kstr) 167 if (kstr)
167 { 168 {
@@ -202,7 +203,7 @@ engine_software_xlib_loop(void)
202 } 203 }
203 break; 204 break;
204 case KeyRelease: 205 case KeyRelease:
205 ks = XKeycodeToKeysym(ev.xkey.display, ev.xkey.keycode, 0); 206 ks = XkbKeycodeToKeysym(ev.xkey.display, ev.xkey.keycode, 0, 0);
206 kstr = XKeysymToString(ks); 207 kstr = XKeysymToString(ks);
207 if (kstr) 208 if (kstr)
208 { 209 {