jbuchermn / newm

Wayland compositor
MIT License
959 stars 30 forks source link

focus_follows_mouse fails when transitioning from gutter/background surface to window #129

Closed edrex closed 2 years ago

edrex commented 2 years ago

When moving the pointer between windows, the destination window sometimes fails to receive focus. The condition for failure seems to be if the cursor transitions to the gutter/background surface in between. Whenever the cursor transitions from background to window, focus doesn't follow correctly.

Moving the pointer quickly between windows focuses correctly, I think because the pointer "tunnels" across the gutter without registering an intermediate position.

jbuchermn commented 2 years ago

I've never noticed something like that.. What do you mean by gutter?

Can you record a short clip showing what is going wrong?

a-priestley commented 2 years ago

Hello. I am noticing this too. For me specifically it causes the border to show up around my alacritty window, but the window itself does not gain focus--the application is not actionable. I believe what @edrex means by "gutter", is the gaps present between two windows. If I overlap the windows and then hover from one over to alacritty, it gains focus. But when hovering from blank compositor space (desktop, or "gaps"), alacritty intermittently fails to properly gain focus.

SwitchAxe commented 1 year ago

I also have this issue. Have you managed to find a workaround? Is there going to be a fix? Maybe some logging can help...? If so, which kind of log is needed to track down the problem?