koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
24.18k stars 646 forks source link

Safari geolocation popup are behind the window #1343

Closed mickaelperrin closed 9 months ago

mickaelperrin commented 2 years ago

Hi,

I just discovered a weird behavior of Safari geolocation confirmation popup when using rules.

Step 1: Create a global rule for Safari:

yabai -m rule --add app="^Safari$" space="Web"
yabai -m rule --add app="^Safari$" title="^(Général|Onglets|Remplissage automatique|Mots de passe|Recherche|Sécurité|Confidentialité|Sites web|Extensions|Avancées|)$" manage=off layer=above

Step 2: Lauch Safari Step 3: Move Safari to another display Step4: Open a web page which ask for geolocation

Result: the popup is hidden behind the main window.

Workaround: move the safari window a little bin. The popup then shows in front.

Note that I created a custom Safari rule for that kind of window, but even if it gets targeted by the rule and show shortly, the popup remains behind the main window.

yabai -m rule --add app="^Safari$" title="^$" manage=off layer=above sticky=on
AlgusDark commented 2 years ago

Have you tried to put safari on below layer and then everything else on above layer?

mickaelperrin commented 2 years ago

Yeah, I give it a try and this is even worse sadly.

koekeishiya commented 9 months ago

Should be resolved in latest version.