added handling clickable global animations during request dialog
authorHolger Schemel <info@artsoft.org>
Thu, 25 Apr 2019 17:25:19 +0000 (19:25 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 25 Apr 2019 17:25:19 +0000 (19:25 +0200)
src/tools.c

index e33344dd6b23cd1a64bd06a2f84d4d8924836fc0..d3bfb74dd9385fde17716522aaf9555247ce42be 100644 (file)
@@ -4333,6 +4333,12 @@ static int RequestHandleEvents(unsigned int req_state)
                button_status = MB_RELEASED;
            }
 
                button_status = MB_RELEASED;
            }
 
+           if (HandleGlobalAnimClicks(mx, my, button_status, FALSE))
+           {
+             // do not handle this button event anymore
+             continue;         // force mouse event not to be handled at all
+           }
+
            // this sets 'request_gadget_id'
            HandleGadgets(mx, my, button_status);
 
            // this sets 'request_gadget_id'
            HandleGadgets(mx, my, button_status);