globalshortcut-x11: Drop use of variable for display

This commit is contained in:
Jonas Kvinge
2022-02-11 02:31:45 +01:00
parent 7620f9ebbe
commit 354bbf820f

View File

@@ -75,8 +75,7 @@ Display *X11Display() {
QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface();
if (!native) return nullptr;
void *display = native->nativeResourceForIntegration("display");
return reinterpret_cast<Display*>(display);
return reinterpret_cast<Display*>(native->nativeResourceForIntegration("display"));
#else