From e48a9a27bd11dbef9531bd12d3c0c60cc771b2c3 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 21 Sep 2021 09:19:21 +0300 Subject: macOS: Native context menus Popup context menus now use NSMenu. There are still has a few glitches with the navbar identity button, but most menus are working. SDL required another little tweak to force it to update mouse button state after the synchronously handled context menu goes away. Otherwise SDL's internal mouse button state shows that the right mouse button is held down. --- src/ui/widget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui/widget.h') diff --git a/src/ui/widget.h b/src/ui/widget.h index 0eab69c1..9243c00a 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h @@ -121,6 +121,7 @@ enum iWidgetFlag { #define destroyPending_WidgetFlag iBit64(61) #define leftEdgeDraggable_WidgetFlag iBit64(62) #define refChildrenOffset_WidgetFlag iBit64(63) /* visual offset determined by the offset of referenced children */ +#define nativeMenu_WidgetFlag iBit64(64) enum iWidgetAddPos { back_WidgetAddPos, -- cgit v1.2.3