diff --git a/CMakeLists.txt b/CMakeLists.txt
index 367e6208fe..63b515746c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -644,7 +644,7 @@ install(TARGETS kdeinit_kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS} )
install(TARGETS kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS} )
add_executable(kwin_wayland tabletmodemanager.cpp main_wayland.cpp)
-target_link_libraries(kwin_wayland kwin)
+target_link_libraries(kwin_wayland kwin KF5::Crash)
if (HAVE_LIBCAP)
target_link_libraries(kwin_wayland ${Libcap_LIBRARIES})
endif()
diff --git a/main_wayland.cpp b/main_wayland.cpp
index 443499f347..a88896265c 100644
--- a/main_wayland.cpp
+++ b/main_wayland.cpp
@@ -36,6 +36,7 @@ along with this program. If not, see .
#include
#include
#include
+#include
#include
// Qt
@@ -83,6 +84,14 @@ static void sighandler(int)
QApplication::exit();
}
+void disableDrKonqi()
+{
+ KCrash::setDrKonqiEnabled(false);
+}
+// run immediately, before Q_CORE_STARTUP functions
+// that would enable drkonqi
+Q_CONSTRUCTOR_FUNCTION(disableDrKonqi)
+
static void readDisplay(int pipe);
enum class RealTimeFlags