Skip to content

Commit 3a3388c

Browse files
fix building with disable wayland (#2513)
QWaylandApplication definition doesn't exist on wayland disabled qt binaries
1 parent 5c7c6fd commit 3a3388c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/frontend/qt_sdl/Screen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,13 +1299,15 @@ std::optional<WindowInfo> ScreenPanelGL::getWindowInfo()
12991299
wi.display_connection = x11->display();
13001300
wi.window_handle = reinterpret_cast<void*>(winId());
13011301
}
1302+
#if defined(WAYLAND_ENABLED)
13021303
else if (platform_name == QStringLiteral("wayland"))
13031304
{
13041305
wi.type = WindowInfo::Type::Wayland;
13051306
const QWaylandApplication* wl = qApp->nativeInterface<QWaylandApplication>();
13061307
wi.display_connection = wl->display();
13071308
wi.window_handle = reinterpret_cast<void*>(winId());
13081309
}
1310+
#endif
13091311
#else
13101312
QPlatformNativeInterface* pni = QGuiApplication::platformNativeInterface();
13111313
if (platform_name == QStringLiteral("xcb"))

0 commit comments

Comments
 (0)