Add Platform::IsX11 in forgotten place

This commit is contained in:
Ilya Fedin 2021-02-24 22:01:16 +04:00 committed by John Preston
parent db65fca0aa
commit ae2c25f6a2

View file

@ -247,13 +247,15 @@ bool UnsetWindowExtents(QWindow *window) {
bool ShowWindowMenu(QWindow *window) { bool ShowWindowMenu(QWindow *window) {
if (const auto integration = WaylandIntegration::Instance()) { if (const auto integration = WaylandIntegration::Instance()) {
return integration->showWindowMenu(window); return integration->showWindowMenu(window);
} else { } else if (Platform::IsX11()) {
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION #ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
return ShowXCBWindowMenu(window); return ShowXCBWindowMenu(window);
#else // !DESKTOP_APP_DISABLE_X11_INTEGRATION #else // !DESKTOP_APP_DISABLE_X11_INTEGRATION
return false; return false;
#endif // DESKTOP_APP_DISABLE_X11_INTEGRATION #endif // DESKTOP_APP_DISABLE_X11_INTEGRATION
} }
return false;
} }
TitleControls::Layout TitleControlsLayout() { TitleControls::Layout TitleControlsLayout() {