raboof / notion

Tiling tabbed window manager
https://notionwm.net/
GNU Lesser General Public License v2.1
272 stars 65 forks source link

mousefocus on focus #109

Open raboof opened 5 years ago

raboof commented 5 years ago

mousefocus=sloppy (the default) is focus-follows-mouse mousefocus=disabled disables focus-follows-mouse, but means the focus also doesn't shift when a window is clicked

It would be good to introduces a mousefocus=onclick which disables focus-follows-mouse, but updates the focus when a window is clicked. This can be detected through FocusIn events.

raboof commented 5 years ago

Hmm, I might have been wrong about this being detectable through FocusIn events. Client windows are already subscribed to FocusChangeMap but it is not triggered when the window is clicked (which I guess makes sense, as indeed the focus doesn't change yet...)

koallen commented 2 years ago

This would be a nice addition to notion! I recently switched to notion and it has been working well, but one issue is that I constantly failed to copy things because by the time I hit Ctrl-C my mouse moved to somewhere else. I think the onclick behavior that you describe would match the behavior of other common desktop environments (e.g. GNOME, macOS, Windows)