mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 00:38:00 +02:00
XQuartz: Properly set the menu bar and hotkey state when changing rootless mode.
Currently no code path exhibits the broken behavior since we only toggle into rootless if we don't have the root.
(cherry picked from commit 970f100ca3)
This commit is contained in:
parent
1367918bd6
commit
5c435dc15f
1 changed files with 11 additions and 4 deletions
|
|
@ -350,13 +350,20 @@ void QuartzSetRootless(Bool state) {
|
|||
/* When in rootless, the menubar is not part of the screen, so we need to update our screens on toggle */
|
||||
QuartzUpdateScreens();
|
||||
|
||||
if (!quartzEnableRootless && !quartzHasRoot) {
|
||||
RootlessHideAllWindows();
|
||||
} else if (quartzEnableRootless && !quartzHasRoot) {
|
||||
RootlessShowAllWindows();
|
||||
if(!quartzHasRoot) {
|
||||
if(!quartzEnableRootless) {
|
||||
RootlessHideAllWindows();
|
||||
} else {
|
||||
RootlessShowAllWindows();
|
||||
}
|
||||
}
|
||||
|
||||
X11ApplicationShowHideMenubar(!quartzHasRoot);
|
||||
|
||||
xp_reenable_update();
|
||||
|
||||
if (!quartzEnableRootless && quartzFullscreenDisableHotkeys)
|
||||
xp_disable_hot_keys(quartzHasRoot);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue