Skip to content

Commit

Permalink
Merge pull request #44 from olegantonyan/fix-wayland-crash
Browse files Browse the repository at this point in the history
fix SIGSEGV on wayland
  • Loading branch information
Skycoder42 authored Aug 21, 2020
2 parents 4f76792 + 941cb2f commit bd35d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QHotkey/qhotkey_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd35d8b

Please sign in to comment.