fix issue with nsmenu items

This commit is contained in:
Johnathan Becker 2024-11-11 22:52:24 -07:00
parent bc53ea0ecf
commit 29e4d90177
No known key found for this signature in database

View file

@ -1832,6 +1832,11 @@ static float menuBarHeight = 0.0;
inMode: NSEventTrackingRunLoopMode
dequeue: YES];
type = [event type];
if (type == NSLeftMouseUp || type == NSRightMouseUp || type == NSOtherMouseUp)
{
shouldFinish = YES;
break; // Exit the loop to proceed to StopPeriodicEvents
}
if (type == NSAppKitDefined)
{
[[event window] sendEvent: event];