mirror of
https://github.com/Skycoder42/QHotkey.git
synced 2026-11-19 12:49:58 +03:00
Merge pull request #44 from olegantonyan/fix-wayland-crash
fix SIGSEGV on wayland
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user