ac2f41c86d
Summary: This change adds support for the switch devices introduces with libinput 1.7 (lid) and 1.9 (tablet mode). So far it's not yet used internally in KWin, but only exposed through the Device and Events. As KWin currently only requires libinput 1.5 and we are rather late in the release cycle the new functionality is ifdef'ed. The requirement will be raised once master is 5.13. It is already available on build.kde.org, but e.g. Neon only has 1.6. The switch events are interesting as they report whether the lid is closed (might be interesting for e.g. powerdevil) and whether a convertible is in tablet mode (supported for e.g. Lenovo Yogas with recent kernel). This can be used by KWin internally to enable/disable the virtual keyboard. And can be exposed globally to switch to Plasma Mobile shell in future. Test Plan: Only through test case as my Lenovo Yoga uses Neon which has a too old libinput Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #plasma Differential Revision: https://phabricator.kde.org/D9516
45 lines
1.6 KiB
CMake
45 lines
1.6 KiB
CMake
#cmakedefine KWIN_BUILD_DECORATIONS 1
|
|
#cmakedefine KWIN_BUILD_TABBOX 1
|
|
#cmakedefine KWIN_BUILD_ACTIVITIES 1
|
|
#define KWIN_NAME "${KWIN_NAME}"
|
|
#define KWIN_INTERNAL_NAME_X11 "${KWIN_INTERNAL_NAME_X11}"
|
|
#define KWIN_CONFIG "${KWIN_NAME}rc"
|
|
#define KWIN_VERSION_STRING "${PROJECT_VERSION}"
|
|
#define XCB_VERSION_STRING "${XCB_VERSION}"
|
|
#define KWIN_KILLER_BIN "${CMAKE_INSTALL_FULL_LIBEXECDIR}/kwin_killer_helper"
|
|
#define KWIN_RULES_DIALOG_BIN "${CMAKE_INSTALL_FULL_LIBEXECDIR}/kwin_rules_dialog"
|
|
#define KWIN_XCLIPBOARD_SYNC_BIN "${CMAKE_INSTALL_FULL_LIBEXECDIR}/org_kde_kwin_xclipboard_syncer"
|
|
#cmakedefine01 HAVE_INPUT
|
|
#cmakedefine01 HAVE_INPUT_1_9
|
|
#cmakedefine01 HAVE_X11_XCB
|
|
#cmakedefine01 HAVE_X11_XINPUT
|
|
#cmakedefine01 HAVE_DRM
|
|
#cmakedefine01 HAVE_GBM
|
|
#cmakedefine01 HAVE_LIBHYBRIS
|
|
#cmakedefine01 HAVE_WAYLAND_EGL
|
|
#cmakedefine01 HAVE_SYS_PRCTL_H
|
|
#cmakedefine01 HAVE_PR_SET_DUMPABLE
|
|
#cmakedefine01 HAVE_PR_SET_PDEATHSIG
|
|
#cmakedefine01 HAVE_SYS_PROCCTL_H
|
|
#cmakedefine01 HAVE_PROC_TRACE_CTL
|
|
#cmakedefine01 HAVE_SYS_SYSMACROS_H
|
|
#cmakedefine01 HAVE_BREEZE_DECO
|
|
#cmakedefine01 HAVE_UDEV
|
|
#cmakedefine01 HAVE_LIBCAP
|
|
#cmakedefine01 HAVE_SCHED_RESET_ON_FORK
|
|
#if HAVE_BREEZE_DECO
|
|
#define BREEZE_KDECORATION_PLUGIN_ID "${BREEZE_KDECORATION_PLUGIN_ID}"
|
|
#endif
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#cmakedefine HAVE_UNISTD_H 1
|
|
|
|
/* Define to 1 if you have the <malloc.h> header file. */
|
|
#cmakedefine HAVE_MALLOC_H 1
|
|
|
|
#cmakedefine XCB_ICCCM_FOUND 1
|
|
#ifndef XCB_ICCCM_FOUND
|
|
#define XCB_ICCCM_WM_STATE_WITHDRAWN 0
|
|
#define XCB_ICCCM_WM_STATE_NORMAL 1
|
|
#define XCB_ICCCM_WM_STATE_ICONIC 3
|
|
#endif
|