Check if plugin is visible


#1

Hi, 

it seems that calling isShowing() in a component isn't the way to really determin wheter or not the component is visible on the screen. The issue is that I need a second window for the plugin which has to stay on top. (Please don't ask why,...) When I close the plugin editor in Ableton, isShowing returns false correctly. However, when the host itself is minimized, the plugin doesn't seem to care and isShowing falsely returns true. 

Is there a way around this or do we have to live with the "stupidity" of the OS / Host?  

Cheers!


#2

You could also check Process::isForegroundProcess ?