Last mouse click when exiting modal windows


#1

Hi,

I’m wondering if there is a way to forget the last mouse click when one exits a modal window. For example, if I have a popup menu displayed and I click outside the popup in order to close it, the mouse click is forwarded to the juce component beneath the mouse. On a crowded gui with tons of controls that means I need to be very careful of where I’m clicking if I don’t want side-effects :slight_smile:

I would prefer to have my modal windows and popup menu “eat” that last click, is it possible to do ?


#2

Haven’t got anything that would do that at the moment, but it’s a good question. I guess you could cover the other components with a temporary transparent component to catch the clicks, but I’m reworking some modal stuff at the moment, and I’ll have a think about it.