diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-16 07:01:40 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-16 07:01:40 +0300 |
commit | 56b80c25a8512be27669b0e99ac61b07d276df2e (patch) | |
tree | c09d2d157495ce5972ec649747a3d24ba1db1c67 /src/ui/widget.h | |
parent | 5293de3a437b10656e4e678cffecdc1cf416b9d9 (diff) |
Dismiss menus when clicking outside them
Added a new widget flag for notifying about missed mouse clicks. Only used in popup menus at the moment.
IssueID #2
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index 25208c30..fa4fbe0f 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -58,6 +58,7 @@ enum iWidgetFlag { | |||
58 | tight_WidgetFlag = iBit(12), /* smaller padding */ | 58 | tight_WidgetFlag = iBit(12), /* smaller padding */ |
59 | keepOnTop_WidgetFlag = iBit(13), /* gets events first; drawn last */ | 59 | keepOnTop_WidgetFlag = iBit(13), /* gets events first; drawn last */ |
60 | mouseModal_WidgetFlag = iBit(14), /* eats all unprocessed mouse events */ | 60 | mouseModal_WidgetFlag = iBit(14), /* eats all unprocessed mouse events */ |
61 | commandOnMouseMiss_WidgetFlag = iBit(15), | ||
61 | /* arrange behavior */ | 62 | /* arrange behavior */ |
62 | fixedPosition_WidgetFlag = iBit(16), | 63 | fixedPosition_WidgetFlag = iBit(16), |
63 | arrangeHorizontal_WidgetFlag = iBit(17), /* arrange children horizontally */ | 64 | arrangeHorizontal_WidgetFlag = iBit(17), /* arrange children horizontally */ |