1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +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:
Mattias Engdegård 2023-10-09 17:18:17 +02:00
parent 4da644edf6
commit 156392fee5

View File

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