Fix T77900: File Browser in macOS fullscreen crashes
When Blender is started in fullscreen mode from the command line, or if the fullscreen state is saved in the startup file, all temporary windows will also open in fullscreen mode. When closing the fullscreen File Browser, Blender would either crash or parent window becomes black. This does not happen if the Blender switches to full screen manually. `NSWindowCollectionBehaviorFullScreenPrimary` should be set for windows that can enter full-screen mode. Otherwise macOS will turn the wrong window into full-screen. Similar fix: rB4b39de677d20 Differential Revision: https://developer.blender.org/D8708 Reviewed by: Julian Eisel
This commit is contained in:
parent
cb0b0416f4
commit
0330d1af29
Notes:
blender-bot
2023-02-14 05:16:27 +01:00
Referenced by issue #81437, X3D Import does not handle Materials Referenced by issue #80903, Texturing with anchored type stroke Referenced by issue #80863, Can't control image transparency Referenced by issue #80784, Eevee bloom functioning differently in viewport render than in preview or render Referenced by issue #80774, Mac/Linux Not freed memory blocks showing version from command line Referenced by issue #80743, Blender 2.90 crashes on boot Referenced by issue #80672, Blender won't open or run Referenced by issue #80621, Autosave does not work for me under Mac OS Referenced by issue #80575, convert to mesh from curve not work. don't workht key and menu Referenced by issue #80518, Blender 2.9 crash on enabling collection Referenced by issue #80505, Blender 2.90 crashes on Ubuntu 16.04 LTS Referenced by issue #80380, 2.90 Not opening on Linux Referenced by issue #80333, Cursor not reset properly (disappears after rotating navigation gizmo, stuck after importing) Referenced by issue #80334, I can't even open Blender 2.9 Referenced by issue #80343, Fluid is not working on large domains Referenced by issue #80311, Cloth filter brush only works in one direction in vertically split viewport Referenced by issue #80203, Crash when changing torus properties Referenced by issue #77900, Closing secondary full screen window destroys main Blender window too Part 2 Referenced by issue #56925, Cycles produces banded render artifacts in dense or sharp volume renders.
|
@ -415,7 +415,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa,
|
|||
[parentWindow->getCocoaWindow() addChildWindow:m_window ordered:NSWindowAbove];
|
||||
[m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
|
||||
}
|
||||
else if (state != GHOST_kWindowStateFullScreen) {
|
||||
else {
|
||||
[m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue