From a9ea66cd51ac0a77da25d7bee77aa21de603afba Mon Sep 17 00:00:00 2001 From: CaS Date: Mon, 14 Feb 2005 10:35:39 +0000 Subject: [PATCH] Fix for bug #11906 git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20704 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/GSTitleView.m | 9 +++++++++ 2 files changed, 15 insertions(+) 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