[Xquartz-changes] xserver: Branch 'master'

Jeremy Huddleston jeremyhu at freedesktop.org
Sat Jan 28 23:13:21 PST 2012


 hw/xquartz/X11Controller.m |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit ced129ed8a11e3dfa2aefa86cbbf85bf3cb5faff
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Sat Jan 28 23:11:44 2012 -0800

    XQuartz: Toggle off fullscreen mode when XQuartz is hidden
    
    http://xquartz.macosforge.org/trac/ticket/478
    
    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

diff --git a/hw/xquartz/X11Controller.m b/hw/xquartz/X11Controller.m
index 01526b7..3de4e13 100644
--- a/hw/xquartz/X11Controller.m
+++ b/hw/xquartz/X11Controller.m
@@ -773,6 +773,13 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
 - (void) applicationDidHide:(NSNotification *)notify
 {
   DarwinSendDDXEvent(kXquartzControllerNotify, 1, AppleWMHideAll);
+
+  /* Toggle off fullscreen mode to leave our non-default video 
+   * mode and hide our guard window.                          
+   */
+  if (!XQuartzIsRootless && XQuartzFullscreenVisible) {
+    DarwinSendDDXEvent(kXquartzToggleFullscreen, 0);
+  }
 }
 
 - (void) applicationDidUnhide:(NSNotification *)notify


More information about the Xquartz-changes mailing list