PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

Interacts awkwardly with focus-follows-mouse

Open emilazy opened this issue 6 years ago • 1 comments

Whenever the cursor hovers over a window, causing it to focus, PaperWM treats it as a full raise and jerks its position on the screen, making focus-follows-mouse for keyboard usage awkward.

emilazy avatar Jan 18 '20 15:01 emilazy

This is a pet peeve of mine, in my experience focus-follow-mouse/sloppy-mouse never worked on anything with virtual-display/workspaces, i.e. any mechanism that can open a window under the mouse pointer can create problems.

I don't recall the details and never investigated how it's done on Wayland, but would it be possible at the extension level to get the "mouse entered window" event (enter notify?), calculate if the mouse is moving and give focus to the window only in this case? I remember that ten or more years ago I hacked a plugin for the Sawfish WM and I covered nearly all the corner cases, but I suspect that nowadays I would need to hack Mutter to get something similar... <__<

ndrvtl avatar Jun 01 '20 08:06 ndrvtl