mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
Fix for bug #11906
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
01f3d318e1
commit
a9ea66cd51
2 changed files with 15 additions and 0 deletions
|
@ -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>
|
2005-02-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Headers/Additions/GNUstepGUI/GSDisplayServer.h (-setalpha::): Declare.
|
* Headers/Additions/GNUstepGUI/GSDisplayServer.h (-setalpha::): Declare.
|
||||||
|
|
|
@ -274,6 +274,7 @@
|
||||||
NSPoint location;
|
NSPoint location;
|
||||||
unsigned eventMask = NSLeftMouseUpMask | NSPeriodicMask;
|
unsigned eventMask = NSLeftMouseUpMask | NSPeriodicMask;
|
||||||
BOOL done = NO;
|
BOOL done = NO;
|
||||||
|
BOOL moved = NO;
|
||||||
NSDate *theDistantFuture = [NSDate distantFuture];
|
NSDate *theDistantFuture = [NSDate distantFuture];
|
||||||
NSPoint startWindowOrigin;
|
NSPoint startWindowOrigin;
|
||||||
NSPoint endWindowOrigin;
|
NSPoint endWindowOrigin;
|
||||||
|
@ -309,6 +310,7 @@
|
||||||
{
|
{
|
||||||
NSPoint origin = [_window frame].origin;
|
NSPoint origin = [_window frame].origin;
|
||||||
|
|
||||||
|
moved = YES;
|
||||||
origin.x += (location.x - lastLocation.x);
|
origin.x += (location.x - lastLocation.x);
|
||||||
origin.y += (location.y - lastLocation.y);
|
origin.y += (location.y - lastLocation.y);
|
||||||
if (_ownedByMenu)
|
if (_ownedByMenu)
|
||||||
|
@ -339,6 +341,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
[NSEvent stopPeriodicEvents];
|
[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
|
// We do not need app menu over menu
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue