Add Platform::IsX11 in forgotten place
This commit is contained in:
parent
db65fca0aa
commit
ae2c25f6a2
1 changed files with 3 additions and 1 deletions
|
|
@ -247,13 +247,15 @@ bool UnsetWindowExtents(QWindow *window) {
|
|||
bool ShowWindowMenu(QWindow *window) {
|
||||
if (const auto integration = WaylandIntegration::Instance()) {
|
||||
return integration->showWindowMenu(window);
|
||||
} else {
|
||||
} else if (Platform::IsX11()) {
|
||||
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||
return ShowXCBWindowMenu(window);
|
||||
#else // !DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||
return false;
|
||||
#endif // DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
TitleControls::Layout TitleControlsLayout() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue