baskerville / bspwm

A tiling window manager based on binary space partitioning
BSD 2-Clause "Simplified" License
7.79k stars 414 forks source link

Multi-Monitor: focus_follows_pointer not triggered when moving pointer to empty monitor/desktop. #1201

Open bambalamm opened 4 years ago

bambalamm commented 4 years ago

On my 3 monitor setup with 1 desktop on each monitor, when I move the mouse pointer to another monitor with an empty desktop OR to the empty gap space around a window on a monitor (with of course a desktop), focus does not follow the pointer.
In other words: the window currently holding focus does not lose focus when the mouse moves to empty desktop space on another monitor and the new monitor does not gain focus, so for example opening a new window/node occurs on the old monitor with the still selected old window on it.

I think my issue is similar to #523: Monitor focus events don't happen with empty monitors/desktops + focus_folllows_pointer.

In my ~/.config/bspwm/bspwmrc i've the following relevant settings: bspc focus_follows_pointer true bspc click_to_focus any

Running bspc subscribe monitor desktop node as well shows nothing is triggered when moving the pointer to an empty desktop.

So I wonder if it's just me having this issue, and if so, how I might debug/fix it so the pointer does focus empty monitors. Or if this is the intended behavior. Or what else is going on.

Thanks by the way! For your work. I'm really loving BSPWM, it's awesome!

NerKnutson commented 8 months ago

I think that I have been facing a similar issue with my dmenu script open on the previous when focusing the desktop on another monitor. The following seems to fix it for me. bspc config pointer_follows_monitor true

ortango commented 7 months ago

So I wonder if it's just me having this issue, and if so, how I might debug/fix it so the pointer does focus empty monitors. OfOr if this is the intended behavior. Or what else is going on.

for what it is worth i can not reproduce your issue. i get the correct events moving the cursor onto an empty monitor with the same settings.