diff --git a/src/globalshortcuts/globalshortcut-x11.cpp b/src/globalshortcuts/globalshortcut-x11.cpp index 2383f022..7c50fc41 100644 --- a/src/globalshortcuts/globalshortcut-x11.cpp +++ b/src/globalshortcuts/globalshortcut-x11.cpp @@ -75,8 +75,7 @@ Display *X11Display() { QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface(); if (!native) return nullptr; - void *display = native->nativeResourceForIntegration("display"); - return reinterpret_cast(display); + return reinterpret_cast(native->nativeResourceForIntegration("display")); #else