git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-02-14 10:35:39 +00:00
parent 01f3d318e1
commit a9ea66cd51
2 changed files with 15 additions and 0 deletions

View file

@ -274,6 +274,7 @@
NSPoint location;
unsigned eventMask = NSLeftMouseUpMask | NSPeriodicMask;
BOOL done = NO;
BOOL moved = NO;
NSDate *theDistantFuture = [NSDate distantFuture];
NSPoint startWindowOrigin;
NSPoint endWindowOrigin;
@ -309,6 +310,7 @@
{
NSPoint origin = [_window frame].origin;
moved = YES;
origin.x += (location.x - lastLocation.x);
origin.y += (location.y - lastLocation.y);
if (_ownedByMenu)
@ -339,6 +341,13 @@
}
[NSEvent stopPeriodicEvents];
if (moved == YES)
{
// Let everything know the window has moved.
[[NSNotificationCenter defaultCenter]
postNotificationName: NSWindowDidMoveNotification object: _window];
}
}
// We do not need app menu over menu