kwin/src/helpers/wayland_wrapper/CMakeLists.txt
David Edmundson f541d851ed [kwin_wrapper] Transfer ownership of Xwayland socket creation and Xauthority to the wrapper
This way if kwin_wayland crashes we don't need to ensure that new
environment variables need to get synced across the new env.

This fixes an issue where spawning an xwayland application from a
wayland window that survives a crash would fail.

By moving the logic here we no longer need to wait for kwin_wayland to
start before starting plasmashell or even ksmserver as all environment
variables are set. As long as the wrapper is ready we can continue
starting and clients will just block on connect.

That should still allow for both a lot of optimisations both for speed
and cleaning up the startplasma-wayland scripts.

This will be addressed in follow up patches.

Use of kwin_wayland directly with xwayland is still supported for
testing.
2021-08-17 09:41:57 +01:00

21 lines
576 B
CMake

set(kwin_wayland_wrapper_SOURCES
kwin_wrapper.cpp
wl-socket.c
)
ecm_qt_declare_logging_category(kwin_wayland_wrapper_SOURCES
HEADER
wrapper_logging.h
IDENTIFIER
KWIN_WRAPPER
CATEGORY_NAME
kwin_wayland_wrapper
DEFAULT_SEVERITY
Warning
)
add_executable(kwin_wayland_wrapper ${kwin_wayland_wrapper_SOURCES})
target_link_libraries(kwin_wayland_wrapper Qt5::Core KWinXwaylandCommon)
set_property(TARGET kwin_wayland_wrapper PROPERTY C_STANDARD 11)
install(TARGETS kwin_wayland_wrapper ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})