mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
* Source/NSWindow.m (processEvent:): posting notification
NSWindowDidChangeScreenNotification moved into `screen` method.
This commit is contained in:
parent
77778fb2bc
commit
4c531f04bc
1 changed files with 3 additions and 12 deletions
|
@ -2702,6 +2702,8 @@ titleWithRepresentedFilename(NSString *representedFilename)
|
|||
}
|
||||
}
|
||||
ASSIGN(_screen, [self _screenForFrame: _frame]);
|
||||
[nc postNotificationName: NSWindowDidChangeScreenNotification
|
||||
object: self];
|
||||
return _screen;
|
||||
}
|
||||
|
||||
|
@ -4179,18 +4181,7 @@ checkCursorRectanglesExited(NSView *theView, NSEvent *theEvent, NSPoint lastPoi
|
|||
[self saveFrameUsingName: _autosaveName];
|
||||
}
|
||||
[nc postNotificationName: NSWindowDidMoveNotification
|
||||
object: self];
|
||||
// Check if window moved to an other screen
|
||||
{
|
||||
NSScreen *newScreen = [self _screenForFrame: _frame];
|
||||
|
||||
if (newScreen != _screen)
|
||||
{
|
||||
ASSIGN(_screen, newScreen);
|
||||
[nc postNotificationName: NSWindowDidChangeScreenNotification
|
||||
object: self];
|
||||
}
|
||||
}
|
||||
object: self];
|
||||
break;
|
||||
|
||||
case GSAppKitWindowResized:
|
||||
|
|
Loading…
Reference in a new issue