I'm trying to make modal @modal window with a parent @main.
Since there's no real modal @window, I'm trying to mimic it so when you activate @main, if @modal exist, I activate @modal:
on *:active:*:{
echo -s $active -- $lactive
if ($active == @main) && ($window(@modal)) window -ao @modal
}
This fails, even with any kind of timer to delay the /window command.
When I activate @main, @modal is brought up to the front, and $active is set correctly but i can still access and trigger mouse events in @main, which is not desired.
For example, I click on @main's titlebar to move it, which activate it, I'm still able to move that window.
I believe that activating @modal in the script should make the action of moving @main impossible, I think I should have to reclick to move it (then retriggering the code, always getting @modal active as intended)
At the same time, even if this is not intended and get fixed, it would probably still register click when clicking inside the window to activate it, is it possible to create modal custom @window?