* Source/NSApplication.m (_appIconInit): take into account main screen

origin when placing application icon.
This commit is contained in:
Sergii Stoian 2020-02-20 00:53:44 +02:00
parent 344a4bbaf8
commit fe1cf36de0
2 changed files with 6 additions and 0 deletions

View file

@ -3896,6 +3896,7 @@ struct _DelegateWrapper
iconContentRect = GSGetIconFrame(_app_icon_window);
iconFrame = [_app_icon_window frameRectForContentRect: iconContentRect];
iconFrame.origin = [[NSScreen mainScreen] frame].origin;
iconViewFrame = NSMakeRect(0, 0,
iconContentRect.size.width, iconContentRect.size.height);
[_app_icon_window setFrame: iconFrame display: YES];