summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini/x11-keymap.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-30 20:48:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-30 20:48:09 +0200
commitc64c3c69dfed2d5d2af7b72b0489f52b28f854a8 (patch)
tree1c6995ca16437f7deaa1e4a6be88ea3f009ec328 /qxt-mini/x11-keymap.hpp
parentf018bf4beeb15f346177dcee2b9e1a023627e7c4 (diff)
qxt-mini: fix numpad handling
Diffstat (limited to 'qxt-mini/x11-keymap.hpp')
-rw-r--r--qxt-mini/x11-keymap.hpp23
1 files changed, 16 insertions, 7 deletions
diff --git a/qxt-mini/x11-keymap.hpp b/qxt-mini/x11-keymap.hpp
index 2c737c77..52e2ebea 100644
--- a/qxt-mini/x11-keymap.hpp
+++ b/qxt-mini/x11-keymap.hpp
@@ -10,6 +10,8 @@
#include <QHash>
#include <QPair>
+#include "qxtglobal.h"
+
#include <vector>
#include <tuple>
@@ -17,17 +19,24 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
-QXT_GUI_EXPORT
-std::vector<quint32> qt_key_to_x11(Display* disp, Qt::Key k, Qt::KeyboardModifiers m);
+QXT_EXPORT
+std::vector<quint32> qt_key_to_x11(Display* disp,
+ Qt::Key k, Qt::KeyboardModifiers m);
-QXT_GUI_EXPORT
-std::tuple<Qt::Key, Qt::KeyboardModifiers> x11_key_to_qt(Display* disp, quint32 keycode, quint32 mods);
+QXT_EXPORT
+std::tuple<Qt::Key, Qt::KeyboardModifiers> x11_key_to_qt(Display* disp,
+ quint32 keycode, quint32 mods);
+
+QXT_EXPORT QPair<KeySym, KeySym> keycode_to_keysym(Display* disp,
+ quint32 keycode, quint32 keystate,
+ xcb_key_press_event_t const* kev);
+
+QXT_EXPORT quint32 qt_mods_to_x11(Qt::KeyboardModifiers modifiers);
QXT_GUI_EXPORT
-QPair<KeySym, KeySym> keycode_to_keysym(Display* disp, quint32 keycode, quint32 keystate,
- xcb_key_press_event_t const* kev);
+Qt::KeyboardModifiers x11_mods_to_qt(quint32 mods);
QXT_GUI_EXPORT
-quint32 qt_mods_to_x11(Qt::KeyboardModifiers modifiers);
+quint32 xcb_mods_to_x11(quint32 mods);
#endif