yabai icon indicating copy to clipboard operation
yabai copied to clipboard

Yabai and Arc Browser PiP weird interaction

Open DylanMartin0930 opened this issue 1 year ago • 6 comments

I use Arc browser and it has a built in PiP window whenever you swap tabs while a video is running. Whenever i click on the PiP window to focus on it and use the playback buttons, yabai snaps my cursor to the bottom left corner of my screen. Im certain its yabai interacting with the PiP window as this doesnt happen when i have it disabled. I turned management off for the browser and it still does it. Any idea on how to fix this?

DylanMartin0930 avatar Mar 18 '23 19:03 DylanMartin0930

Same thing with Brave.

azinsharaf avatar Mar 19 '23 04:03 azinsharaf

Try:

yabai -m rule --add title="^Picture in Picture$" manage=off mouse_follows_focus=off

I solved my PiP issues in Chromium this way

andryandrew avatar Mar 20 '23 16:03 andryandrew

Try:

yabai -m rule --add title="^Picture in Picture$" manage=off mouse_follows_focus=off

I solved my PiP issues in Chromium this way

thank for your inspiration, i fix it by following.

yabai -m rule --add subrole="^AXSystemDialog$" manage=off mouse_follows_focus=off

cuiko avatar Mar 27 '23 03:03 cuiko

yabai -m rule --add subrole="^AXSystemDialog$" manage=off mouse_follows_focus=off

This fixed for me too

natelook avatar May 14 '23 17:05 natelook

I have the same problem but yabai -m rule --add subrole="^AXSystemDialog$" manage=off mouse_follows_focus=off made a minor difference for me I have to select another tab in arc so that the pip window gets created and then change workspace before adding this to config whenever I hovered my curser on the pip window it would go the to arc window but now I doesn't but still whenever I'm on a youtube video and want change window or workspace it jump to the arc windows without selecting another tab first I also have these lines in my config file for mouse focus : yabai -m config mouse_follows_focus off yabai -m config focus_follows_mouse autofocus

Khodaparastan avatar Oct 08 '23 11:10 Khodaparastan

but still whenever I'm on a youtube video and want change window or workspace it jump to the arc windows without selecting another tab first

have you fixed this? I have exactly the same issue and don't know what to do about it

corruptmane avatar Nov 21 '23 20:11 corruptmane

Should be resolved in latest version.

koekeishiya avatar Feb 19 '24 22:02 koekeishiya

I still see this issue, even after adding the exception for AXSystemDialog to config at the end and restarting yabai. The mouse jumps to a different place.

I don't see this issue if my global setting for mouse_follows_focus is off

yabai -m config mouse_follows_focus off

alankritjoshi avatar Mar 02 '24 23:03 alankritjoshi

I try to comment the related rule, The issue will recur(when I click the PIP window, the mouse will move to left-bottom).

yabai -m rule --add app="^(Arc)$" subrole="^AXSystemDialog$" manage=off mouse_follows_focus=off

But when I reuse the rule, the issue solved.

Here is my shortened config.

apps=$(awk -v ORS='|' '{if($0!="") print $0}' $XDG_CONFIG_HOME/yabai/yabaimanaged)
yabai -m rule --add app!="^${apps%?}$" manage=off
yabai -m rule --add app="^(Arc)$" subrole="^AXSystemDialog$" manage=off mouse_follows_focus=off

cuiko avatar Mar 03 '24 03:03 cuiko

Now there is another problem, I cannot use Command+Tab to switch between the spaces when PiP is active. It always jumps back to the current space. Did anyone notice this?

weeebdev avatar Mar 26 '24 15:03 weeebdev

Experiencing this issue on current version. when clicking on arc pip mouse moves to bottom left corner of screen. After clicking once I can then move the pip as normal so long as I don't either leave the screen and come back or focus another window.

MattressPadley avatar Apr 14 '24 01:04 MattressPadley

I am having a similar issue with microsoft teams in multi monitor. when I screen share axsystemdialog windows come up for the frame that indicates the shared window and annotation menu, and when ever I want to switch display and move focus to the display that is being shared, it moves back to the display where the main microsoft teams app is instead of moving east or west. Did anybody experience this issue? Please let me know.

armangurkan avatar Apr 20 '24 23:04 armangurkan

I am having a similar issue with microsoft teams in multi monitor. when I screen share axsystemdialog windows come up for the frame that indicates the shared window and annotation menu, and when ever I want to switch display and move focus to the display that is being shared, it moves back to the display where the main microsoft teams app is instead of moving east or west. Did anybody experience this issue? Please let me know.我在多显示器中使用 Microsoft Teams 时遇到了类似的问题。当我屏幕共享 axsystemdialog 窗口出现指示共享窗口和注释菜单的框架时,当我想切换显示并将焦点移动到正在共享的显示器时,它会移回主 Microsoft Teams 应用程序所在的显示器,而不是向东或向西移动。有人遇到过这个问题吗?请告诉我。

Same with you in this case of multiple display. I have to close axsystemdialog to switch display.

cuiko avatar Apr 24 '24 13:04 cuiko

I still see this issue, even after adding the exception for AXSystemDialog to config at the end and restarting yabai. The mouse jumps to a different place.

I don't see this issue if my global setting for mouse_follows_focus is off

yabai -m config mouse_follows_focus off

This fixed it for me too. That's unfortunate. I really love mouse_follows_focus.

ViaxCo avatar May 03 '24 15:05 ViaxCo