mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 02:30:06 +01:00
XQuartz: Reposition windows when we enter fullscreen to ensure our root window
(cherry picked from commit7617d3659b) (cherry picked from commit61ae56f973)
This commit is contained in:
parent
beafebef82
commit
c391114df9
1 changed files with 8 additions and 4 deletions
|
|
@ -324,6 +324,10 @@ void QuartzSetFullscreen(Bool state) {
|
|||
if (quartzHasRoot && !quartzEnableRootless)
|
||||
RootlessShowAllWindows ();
|
||||
|
||||
if (quartzHasRoot || quartzEnableRootless) {
|
||||
RootlessRepositionWindows(screenInfo.screens[0]);
|
||||
}
|
||||
|
||||
/* Somehow the menubar manages to interfere with our event stream
|
||||
* in fullscreen mode, even though it's not visible.
|
||||
*/
|
||||
|
|
@ -341,18 +345,18 @@ void QuartzSetRootless(Bool state) {
|
|||
|
||||
quartzEnableRootless = state;
|
||||
|
||||
xp_disable_update();
|
||||
|
||||
/* When in rootless, the menubar is not part of the screen, so we need to update our screens on toggle */
|
||||
QuartzUpdateScreens();
|
||||
|
||||
if (!quartzEnableRootless && !quartzHasRoot) {
|
||||
xp_disable_update();
|
||||
RootlessHideAllWindows();
|
||||
xp_reenable_update();
|
||||
} else if (quartzEnableRootless && !quartzHasRoot) {
|
||||
xp_disable_update();
|
||||
RootlessShowAllWindows();
|
||||
xp_reenable_update();
|
||||
}
|
||||
|
||||
xp_reenable_update();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue