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:
Jeremy Huddleston 2009-04-09 04:36:26 -07:00
parent 1367918bd6
commit 5c435dc15f

View file

@ -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);
}
/*