Skip to content

Commit 941cb2f

Browse files
committed
fix SIGSEGV on wayland
1 parent 4f76792 commit 941cb2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QHotkey/qhotkey_x11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ quint32 QHotkeyPrivateX11::nativeModifiers(Qt::KeyboardModifiers modifiers, bool
154154
bool QHotkeyPrivateX11::registerShortcut(QHotkey::NativeShortcut shortcut)
155155
{
156156
Display *display = QX11Info::display();
157-
if(!display)
157+
if(!display || !QX11Info::isPlatformX11())
158158
return false;
159159

160160
HotkeyErrorHandler errorHandler;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy