mixu / nwm

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

disable focus follow mouse? #26

Closed mgutz closed 9 years ago

mgutz commented 12 years ago

How do you disable the focus follow mouse feature? I'm a keyboard guy and I inadvetrantly touch the touchpad then the active window changes.

mixu commented 12 years ago

You can do this by commenting out this line in nwm.c, then rebuilding:

 [EnterNotify] = event_enternotify,

This may cause difficulties, however - I haven't really run this setup so I don't know how things will work in practice. It should be possible to refocus then by clicking on windows even after this.

I think I'll have to spend a day or so going mouseless to get a better picture of what the issues here are. If you try this out, do let me know how it works out.

mgutz commented 12 years ago

Thank you.

Working fine so far, I like the behavior better but it's definitely for people who like the keyboard. For example, I can't mouse click on a terminal or a browser to activate it, which is tradeoff I'll put up with. I much prefer not losing focus inadvertently.

I'll report back if I encounter any other side effects.

mgutz commented 12 years ago

One annoyance with this approach is that if I launch a GUI app from the command line chromium-browser &! and then close it, the active border disappears and I can no longer switch the active window using hotkeys. Anyway, I would not recommend this workaround for now.