From 56b80c25a8512be27669b0e99ac61b07d276df2e Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 16 Sep 2020 07:01:40 +0300 Subject: 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 --- 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 25208c30..fa4fbe0f 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h @@ -58,6 +58,7 @@ enum iWidgetFlag { tight_WidgetFlag = iBit(12), /* smaller padding */ keepOnTop_WidgetFlag = iBit(13), /* gets events first; drawn last */ mouseModal_WidgetFlag = iBit(14), /* eats all unprocessed mouse events */ + commandOnMouseMiss_WidgetFlag = iBit(15), /* arrange behavior */ fixedPosition_WidgetFlag = iBit(16), arrangeHorizontal_WidgetFlag = iBit(17), /* arrange children horizontally */ -- cgit v1.2.3