mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:40:47 +00:00
Ignore any window that ignoresMouseEvents when dragging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35684 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f59b23c3fe
commit
293c07c2f0
2 changed files with 17 additions and 8 deletions
|
@ -360,13 +360,18 @@ static GSDragView *sharedDragView = nil;
|
|||
windowRef: (int*)mouseWindowRef
|
||||
{
|
||||
int win;
|
||||
|
||||
*mouseWindowRef = 0;
|
||||
win = [GSServerForWindow(_window) findWindowAt: mouseLocation
|
||||
windowRef: mouseWindowRef
|
||||
excluding: [_window windowNumber]];
|
||||
|
||||
return GSWindowWithNumber(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;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue