mirror of
https://github.com/Skycoder42/QHotkey.git
synced 2026-11-19 12:49:58 +03:00
Fix crash on Wayland
This commit is contained in:
@@ -99,8 +99,7 @@ quint32 QHotkeyPrivateX11::nativeKeycode(Qt::Key keycode, bool &ok)
|
||||
return 0;
|
||||
}
|
||||
|
||||
Display *display = QX11Info::display();
|
||||
if(display) {
|
||||
if(QX11Info::isPlatformX11()) {
|
||||
auto res = XKeysymToKeycode(QX11Info::display(), keysym);
|
||||
if(res != 0)
|
||||
ok = true;
|
||||
|
||||
Reference in New Issue
Block a user