mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 15:20:05 +01:00
XQuartz: Toggle off fullscreen mode when XQuartz is hidden
http://xquartz.macosforge.org/trac/ticket/478
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 47b457541b)
This commit is contained in:
parent
fdca9c4d49
commit
9138bbabcd
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue