mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:10:38 +00:00
Source/NSWindow.m ([-sendEvent:], case NSRightMouseDown):
removed code to display the menu. This is now done by [NSView -rightMouseDown:]. Source/NSView.m: overrides -menu, changes -rightMouseDown: to display the menu, documents -menu, -menuForEvent: and +defaultMenu. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16413 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aa2355943a
commit
9f51f0bca5
3 changed files with 73 additions and 13 deletions
|
@ -2889,17 +2889,7 @@ Code shared with [NSPanel -sendEvent:], remember to update both places.
|
|||
{
|
||||
NSMenu *m;
|
||||
v = [_contentView hitTest: [theEvent locationInWindow]];
|
||||
m = [v menuForEvent: theEvent];
|
||||
if (m)
|
||||
{
|
||||
[NSMenu popUpContextMenu: m
|
||||
withEvent: theEvent
|
||||
forView: v];
|
||||
}
|
||||
else
|
||||
{
|
||||
[v rightMouseDown: theEvent];
|
||||
}
|
||||
[v rightMouseDown: theEvent];
|
||||
_lastPoint = [theEvent locationInWindow];
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue