summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-21 09:19:21 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-21 09:19:21 +0300
commite48a9a27bd11dbef9531bd12d3c0c60cc771b2c3 (patch)
tree0044e6de2a788c061f0fe0eb239ab96d22acadd4 /src/ui/widget.h
parentba6d544b1237aea6901cf5b4f6562db9eb0f46c4 (diff)
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.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h1
1 files changed, 1 insertions, 0 deletions
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 {
121#define destroyPending_WidgetFlag iBit64(61) 121#define destroyPending_WidgetFlag iBit64(61)
122#define leftEdgeDraggable_WidgetFlag iBit64(62) 122#define leftEdgeDraggable_WidgetFlag iBit64(62)
123#define refChildrenOffset_WidgetFlag iBit64(63) /* visual offset determined by the offset of referenced children */ 123#define refChildrenOffset_WidgetFlag iBit64(63) /* visual offset determined by the offset of referenced children */
124#define nativeMenu_WidgetFlag iBit64(64)
124 125
125enum iWidgetAddPos { 126enum iWidgetAddPos {
126 back_WidgetAddPos, 127 back_WidgetAddPos,