PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

Sloppy focus / mouse follows focused window

Open jtaala opened this issue 5 months ago • 0 comments

Request from @bilboquet:

Hello,

I'm a huge fan of sloppy focus, I was even using sloppy focus with PaperWM (sometimes with the help of other extensions). At some point, the behavior of PaperWM changed a bit and some helper extensions I was using were abandoned, so I turned off sloppy focus.

So the "focus follow the mouse pointer when it changes monitor" behavior is not a big deal to me. In fact, what I look strange and see as a bit of inconsistency is that the "focus follow the mouse pointer" only "when it changes monitor". I'd even say that in the current case it's not that the focus follow the mouse: I can move the mouse pointer to my second screen, the focus will change from screen but the windows receiving the mouse pointer will be the one focused only if it was "the last focused window on this screen". In our case, it's more : the mouse pointer follows the focus only when the focus changes from one screen to another.

I understand people that don't like this behavior and would like it to be disabled but in some cases it makes perfect sense: often, if I change the focused screen, chances are high that I'll need the mouse cursor to be around.

So please, don't purely disable this behavior and please and a parameter for that, something like: image

  • Disabled: changing screen with keyboard won't touch the mouse pointer
  • Screen: keep the current behavior
  • Window: the mouse pointer follows the focus changes from the keyboard, putting the mouse pointer in the center of the focused window (I would love it, there was an extension for that but it used to not work well with PaperWM)

Thanks for reading

Originally posted by @bilboquet in https://github.com/paperwm/PaperWM/issues/389#issuecomment-1844985963

jtaala avatar Jan 20 '24 08:01 jtaala