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

View file

@ -1,3 +1,9 @@
2005-02-14 Richard Frith-Macdoanld <rfm@gnu.org>
* Source/GSTitleView.m (-mouseDown:): Post an
NSWindowDidMoveNotification at end of method if window was dragged.
Fixes bug #11906
2005-02-12 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Additions/GNUstepGUI/GSDisplayServer.h (-setalpha::): Declare.

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