On Tue, 9 Jul 2024 17:08:10 -0500 Tim Chase wrote: > On 2024-07-09 19:36, Okan Demirmen wrote: > > Yes, this is all because cwm requires focus to set active > > and heavy use of warp-to-focus because it tries to be "helpful". > > I'd argue cwm should never touch the mouse (i.e. warp) and > > purely rely on stack for focus > > Yeah, it's one of the few things about cwm that bugs me, too. > Especially if I've put my mouse-cursor somewhere intentionally to > keep a place (such as where you were reading or on the next text-entry > field), flip to another window to consult something, and then flip > back...your cursor moves twice unbiden and no longer points where > it was parked.
Time ago I explained my point of view to Okan about this. As I understand it, there are historically two defined focus policies, Click To Focus, which is found in MSWindows (used by default in desktop environments) and Mouse Focus, which is found in its pure form in twm(1). Both have pro and cons, I guess that's why over the years many attempts have been made to get the best of both worlds, any window manager has its own version of the properly called "Sloppy" Focus. I bet none of them will completely please you. A good way to weigh the pros and cons is to use FVWM (the one from ports, not the crap in base) which will let you fine tune the focus behavior they way you want. Personally, after playing with fvwm2 during years I came to the conclusion that there will be always something that bothers me. World isn't perfect. After experiencing and analyzing pros and cons I concluded that what cwm(1) does is "almost" the best deal. There is only one thing I'd like to change in cwm's focus behavior: not lose the focus when you unmaximize a window. Years ago I convinced Joe Wingbermuehle, JWM's author, to do this with his window manager (Openbox also allows you to get this behavior), and the objection immediately arose from him, since JWM does not warp the pointer, under Sloppy Focus your pointer may end up hovering over an unfocused window, in this case if you decide to focus that window using your mouse you have to move the pointer out and in again, he hadn't noticed that you run into this inconsistency (of Sloppy Focus without pointer warping) when you cycle windows from your keyboard anyway. > > -tim > > Walter