mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-23 10:34:07 +00:00
Don't allow Services entries in pop-up menus on macOS (bug#66420)
* src/nsmenu.m ([EmacsMenu runMenuAt:forFrame:keymaps:]): Prevent the system from adding context menu plug-ins (Services entries or sub-menu) to all our pop-up menus.
This commit is contained in:
parent
4da644edf6
commit
156392fee5
@ -768,6 +768,10 @@ - (Lisp_Object)runMenuAt: (NSPoint)p forFrame: (struct frame *)f
|
||||
pressure: 0];
|
||||
|
||||
context_menu_value = -1;
|
||||
#ifdef NS_IMPL_COCOA
|
||||
/* Don't let the system add a Services menu here. */
|
||||
self.allowsContextMenuPlugIns = NO;
|
||||
#endif
|
||||
[NSMenu popUpContextMenu: self withEvent: event forView: view];
|
||||
retVal = context_menu_value;
|
||||
context_menu_value = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user