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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user