Fix annoying closing of menus when mouse button is released, when using

other than default NSMenuInterfaceStyle
This commit is contained in:
sebastia
2026-02-25 20:32:43 +00:00
parent 7ad37b3fe7
commit 2850fbb979
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ GH_TAGNAME= 0.32.0
GH_ACCOUNT= gnustep
GH_PROJECT= libs-gui
DISTNAME= gnustep-gui-${GH_TAGNAME}
REVISION= 0
REVISION= 1
CATEGORIES= devel
@@ -0,0 +1,12 @@
ihttps://github.com/gnustep/libs-gui/pull/399
Index: Source/NSMenuView.m
--- Source/NSMenuView.m.orig
+++ Source/NSMenuView.m
@@ -1834,7 +1834,6 @@ static float menuBarHeight = 0.0;
type = [event type];
if (type == NSLeftMouseUp || type == NSRightMouseUp || type == NSOtherMouseUp)
{
- shouldFinish = YES;
break; // Exit the loop to proceed to StopPeriodicEvents
}
if (type == NSAppKitDefined)