diff --git a/ChangeLog b/ChangeLog index ee9ae1bdf..ad1ae7ba5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-02-14 Richard Frith-Macdoanld + + * Source/GSTitleView.m (-mouseDown:): Post an + NSWindowDidMoveNotification at end of method if window was dragged. + Fixes bug #11906 + 2005-02-12 Fred Kiefer * Headers/Additions/GNUstepGUI/GSDisplayServer.h (-setalpha::): Declare. diff --git a/Source/GSTitleView.m b/Source/GSTitleView.m index 02bd1d95f..9aa42927e 100644 --- a/Source/GSTitleView.m +++ b/Source/GSTitleView.m @@ -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