diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2009-04-09 04:36:26 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2009-04-09 04:36:26 -0700 |
commit | 970f100ca3c5fc0662ae7658d49d118fbd9de943 (patch) | |
tree | 6890e6bc428689281edd0197c7b3c2fd5da89aa8 | |
parent | 5ecc497f71c2133f773f6c56ad76cb778862ddd6 (diff) |
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.
-rw-r--r-- | hw/xquartz/quartz.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c index 1274ec70a..423b351ea 100644 --- a/hw/xquartz/quartz.c +++ b/hw/xquartz/quartz.c @@ -358,13 +358,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); } /* |