(-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:
Alexander Malmberg 2003-02-22 11:33:16 +00:00
parent 8712b50242
commit d78308a8e3
2 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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];
}
}
}