6baf794f88
Major new functionality is xkbcommon support. InputRedirection holds an instance to a small wrapper class which has the xkb context, keymap and state. The keymap is initialied from the file descriptor we get from the Wayland backend. InputRedirection uses this to translate the keycodes into keysymbols and to QString and to track the modifiers as provided by the Qt::KeybordModifiers flags. This provides us enough information for internal usage (e.g. pass through effects if they have "grabbed" the keyboard). If KWin doesn't filter out the key events, it passes them on to the currently active Client respectively an unmanaged on top of the stack. This needs still some improvement (not each unmanaged should get the event). The Client/Unmnaged still uses xtest extension to send the key events to the window. So keylogging is still possible.
13 lines
466 B
CMake
13 lines
466 B
CMake
#cmakedefine KWIN_BUILD_DECORATIONS 1
|
|
#cmakedefine KWIN_BUILD_TABBOX 1
|
|
#cmakedefine KWIN_BUILD_DESKTOPCHANGEOSD 1
|
|
#cmakedefine KWIN_BUILD_SCREENEDGES 1
|
|
#cmakedefine KWIN_BUILD_KAPPMENU 1
|
|
#cmakedefine KWIN_BUILD_ACTIVITIES 1
|
|
#cmakedefine KWIN_BUILD_OXYGEN 1
|
|
#define KWIN_NAME "${KWIN_NAME}"
|
|
#define KWIN_CONFIG "${KWIN_NAME}rc"
|
|
#define KWIN_VERSION_STRING "${KDE4WORKSPACE_VERSION}"
|
|
#cmakedefine01 HAVE_WAYLAND
|
|
#cmakedefine01 HAVE_WAYLAND_EGL
|
|
#cmakedefine01 HAVE_XKB
|