* Source/NSApplication.m (finishLaunching): oberver for

NSApplicationDidChangeScreenParametersNotification was added.
This commit is contained in:
Sergii Stoian 2020-01-23 02:10:27 +02:00
parent fbc08684f4
commit f322393161

View file

@ -1100,6 +1100,12 @@ static BOOL _isAutolaunchChecked = NO;
[nc addObserver: self selector: @selector(_windowDidResignMain:)
name: NSWindowDidResignMainNotification object: nil];
/* Register self as observer to window events. */
[nc addObserver: self
selector: @selector(applicationDidChangeScreenParameters:)
name: NSApplicationDidChangeScreenParametersNotification
object: nil];
/* register as observer for hide/unhide notifications */
[[[NSWorkspace sharedWorkspace] notificationCenter]
addObserver: self selector: @selector(_workspaceNotification:)