swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.71k stars 1.11k forks source link

Clicking layer-shell on another output does not focus the output #5784

Open Architector4 opened 4 years ago

Architector4 commented 4 years ago

On i3, with 2 outputs open, if the first one is focused and the user drags the mouse over and clicks on the statusbar on the second output, the second output (and whatever workspace is open there) gets focused.

On Sway, however, the focus is switched only if the user clicks on the window on that another output, or the empty desktop, but not if the user clicks on swaybar.

Xyene commented 4 years ago

This is actually also true of any layer-shell surface, e.g. Waybar of Wayland rofi as well.

tokyovigilante commented 4 years ago

This also seems to effect focus-follows-mouse - moving the mouse from one screen to another often does not shift focus until I hit Meta+<#> to force a focus change.

Xyene commented 4 years ago

@tokyovigilante that sounds like a separate issue. Could you file it separately? I'm also not able to reproduce it with focus_follows_mouse yes, so some extra details would be good.

David96 commented 4 years ago

This also seems to effect focus-follows-mouse - moving the mouse from one screen to another often does not shift focus until I hit Meta+<#> to force a focus change.

I thought I fixed this with #5678 - are you on sway master?

tokyovigilante commented 4 years ago

are you on sway master?

Unfortunately yes and definitely have #5678, will post a new bug.