Fix "on top" incorrectly set on init (all platforms).
Fix "on top" reseting on window update. (macOS).
This commit is contained in:
@@ -2374,7 +2374,11 @@ void DisplayServerOSX::_update_window(WindowData p_wd) {
|
||||
[p_wd.window_object setHidesOnDeactivate:YES];
|
||||
} else {
|
||||
// Reset these when our window is not a borderless window that covers up the screen
|
||||
[p_wd.window_object setLevel:NSNormalWindowLevel];
|
||||
if (p_wd.on_top) {
|
||||
[p_wd.window_object setLevel:NSFloatingWindowLevel];
|
||||
} else {
|
||||
[p_wd.window_object setLevel:NSNormalWindowLevel];
|
||||
}
|
||||
[p_wd.window_object setHidesOnDeactivate:NO];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user