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 <vitaly@easycoding.org>
This commit is contained in:
Vitaly Zaitsev
2021-11-30 17:09:35 +01:00
committed by GitHub
parent 80cd559bbf
commit 120ba0bac3

View File

@@ -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");
}
}