mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:20:37 +00:00
(-sendEvent:): Only bring up the main menu if there is no window for the event.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16046 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8712b50242
commit
d78308a8e3
2 changed files with 11 additions and 3 deletions
|
@ -1448,10 +1448,10 @@ See -runModalForWindow:
|
|||
NSDebugLLog(@"NSEvent", @"Send NSEvent type: %d to window %@",
|
||||
type, ((window != nil) ? [window description]
|
||||
: @"No window"));
|
||||
if (type == NSRightMouseDown)
|
||||
[self rightMouseDown: theEvent];
|
||||
else if (window)
|
||||
if (window)
|
||||
[window sendEvent: theEvent];
|
||||
else if (type == NSRightMouseDown)
|
||||
[self rightMouseDown: theEvent];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue