From 120ba0bac3194229a67d881c2c7f4b9dd3cc4b1f Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Tue, 30 Nov 2021 17:09:35 +0100 Subject: [PATCH] Always use native Wayland backend on KDE Plasma. (#2131) This will fix issues with broken hotkeys with KDE Plasma on Wayland. Partially reverts 5d66405ed0e0fb871c174b8c1dfffb4a4d48034e commit. Signed-off-by: Vitaly Zaitsev --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bd19a93c..8b78c6f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -50,8 +50,7 @@ void wayland_hacks() { // Workaround to https://github.com/ksnip/ksnip/issues/416 DesktopInfo info; - if ((info.windowManager() == DesktopInfo::GNOME) || - (info.windowManager() == DesktopInfo::KDE)) { + if (info.windowManager() == DesktopInfo::GNOME) { qputenv("QT_QPA_PLATFORM", "xcb"); } }