xserver: Branch 'xorg-server-1.4-apple'

Jeremy Huddleston jeremyhu at kemper.freedesktop.org
Thu Apr 9 04:38:15 PDT 2009


 hw/xquartz/quartz.c |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

New commits:
commit 970f100ca3c5fc0662ae7658d49d118fbd9de943
Author: Jeremy Huddleston <jeremyhu at freedesktop.org>
Date:   Thu Apr 9 04:36:26 2009 -0700

    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.

diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c
index 1274ec7..423b351 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);
 }
 
 /*


More information about the xorg-commit mailing list