XQuartz: Toggle off fullscreen mode when XQuartz is hidden

http://xquartz.macosforge.org/trac/ticket/478

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston 2012-01-28 23:11:44 -08:00
parent c2ba3f339f
commit 47b457541b

View File

@ -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