SL-12456 Potential fix for NSPersistentUIFileManager crash

NSPersistentUIFileManager is supposed to be responsible for restoring window position and size
master
Andrey Kleshchev 2023-01-12 23:33:38 +02:00
parent 252a590c6a
commit 63494cf5c9
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ NSWindowRef createNSWindow(int x, int y, int width, int height)
styleMask:NSTitledWindowMask | NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTexturedBackgroundWindowMask backing:NSBackingStoreBuffered defer:NO];
[window makeKeyAndOrderFront:nil];
[window setAcceptsMouseMovedEvents:TRUE];
[window setRestorable:FALSE]; // Viewer manages state from own settings
return window;
}