From 941cb2f15fb68e613dcf65d8977c487f7d332f56 Mon Sep 17 00:00:00 2001 From: Oleg Antonyan Date: Tue, 18 Aug 2020 20:43:44 +0200 Subject: [PATCH] fix SIGSEGV on wayland --- QHotkey/qhotkey_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QHotkey/qhotkey_x11.cpp b/QHotkey/qhotkey_x11.cpp index 1c99939..fdd3ab2 100644 --- a/QHotkey/qhotkey_x11.cpp +++ b/QHotkey/qhotkey_x11.cpp @@ -154,7 +154,7 @@ quint32 QHotkeyPrivateX11::nativeModifiers(Qt::KeyboardModifiers modifiers, bool bool QHotkeyPrivateX11::registerShortcut(QHotkey::NativeShortcut shortcut) { Display *display = QX11Info::display(); - if(!display) + if(!display || !QX11Info::isPlatformX11()) return false; HotkeyErrorHandler errorHandler;