mixu / nwm

Tiling window manager for X11 written in Node.js
http://mixu.net/nwm/
MIT License
789 stars 72 forks source link

Suprising focus change on workspace switch #21

Closed ameuret closed 9 years ago

ameuret commented 12 years ago

The focus switches to the hovered window on workspace change although the mouse was not moved after the switch.

This is on current master (db354541) under Node 0.6.19, on Ubuntu.

mixu commented 12 years ago

This is a side-effect of how workspace changes are performed. In actuality, windows are hidden and shown by moving them off screen.

I assume you are not using the mouse? Could you tell me what the expected behavior here should be? I mean keeping the focus on the old window after the workspace is switched seems wrong to me since the old window is no longer visible, but perhaps this is the default in some other wm?

ameuret commented 12 years ago

Mmm, I see. You are right, I tend to avoid the mouse as my right-hand wrist presents an accelerating RSI syndrome. And right again, I see no reason to keep the focus on the off-screen window.

Here's what I expected: that the focused window would be remembered per workspace.

As a side note, I also noticed that the focus change is triggered when the mouse cursor crosses window boundaries and not on a simple mousemove. Do you think it deserves a separate Issue?