#pragma once #if !defined __APPLE__ && !defined _WIN32 #undef QXT_X11_INCLUDED #define QXT_X11_INCLUDED #include #include #include #include #include #include #include #include #include QXT_GUI_EXPORT std::vector qt_key_to_x11(Display* disp, Qt::Key k, Qt::KeyboardModifiers m); QXT_GUI_EXPORT std::tuple x11_key_to_qt(Display* disp, quint32 keycode, quint32 mods); QXT_GUI_EXPORT QPair keycode_to_keysym(Display* disp, quint32 keycode, quint32 keystate, xcb_key_press_event_t const* kev); QXT_GUI_EXPORT quint32 qt_mods_to_x11(Qt::KeyboardModifiers modifiers); #endif