Revert my previous change, which failed to set the mouseWindowRef for non-GNUstep windows.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35736 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2012-10-25 04:20:25 +00:00
parent 0a05caf78a
commit c1f5f72359
2 changed files with 13 additions and 11 deletions

View file

@ -1,3 +1,10 @@
2012-10-24 Doug Simons <doug.simons@testplant.com>
* Source/GSDragView.m: Revert my previous change, which failed to set the
mouseWindowRef for non-GNUstep windows. So we have to move the check for the
ignoresMouseEvents flag into the findWindowAt:windowRef:excluding: method
in back instead.
2012-10-14 Doug Simons <doug.simons@testplant.com>
* Source/GSDragView.m: Ignore any window that ignoresMouseEvents when dragging.

View file

@ -361,17 +361,12 @@ static GSDragView *sharedDragView = nil;
{
int win;
NSEnumerator *winEnum = [[GSServerForWindow(_window) windowlist] objectEnumerator];
NSNumber *winNum = nil;
while ((winNum = [winEnum nextObject])) {
NSWindow *window = GSWindowWithNumber([winNum intValue]);
NSRect frame = [window frame];
if (window != _window && NSPointInRect(mouseLocation, frame) && ![window ignoresMouseEvents])
{
return window;
}
}
return nil;
*mouseWindowRef = 0;
win = [GSServerForWindow(_window) findWindowAt: mouseLocation
windowRef: mouseWindowRef
excluding: [_window windowNumber]];
return GSWindowWithNumber(win);
}
@end