mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +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
|
@ -1,3 +1,11 @@
|
|||
2003-02-22 12:29 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSApplication.m (-sendEvent:): Only bring up the main
|
||||
menu if the there is no window for the event.
|
||||
|
||||
* Source/NSPopUpButton.m: Implement -menuForEvent: to always
|
||||
return nil to indicate that we don't have a context menu.
|
||||
|
||||
2003-02-22 02:34 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Headers/gnustep/gui/GSLayoutManager.h: Declare
|
||||
|
|
|
@ -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…
Reference in a new issue