I have some interest in using file managers that draw a desktop over the root window, like Caja, with FVWM, but when I try it, I end up with undesirable focus behavior. I want strict FocusFollowsMouse, but the desktop provided by Caja does not take focus unless it is clicked, which results in windows not under the mouse retaining focus if the mouse leaves it without entering another non-desktop window. This is typical “focus follows mouse” behavior in various other window managers and desktop environments, probably by design, but I want to find out if there is a way to fix the issue from FVWM’s end. Caja’s desktop window information looks like this:
Name: x-caja-desktop Icon Name: x-caja-desktop Class: Caja Resource: desktop_window Window ID: 0x5400006 Desk: 2 Xinerama Screen: 1 Layer: 0 Width: 3840 Height: 1920 X (current page): 0 Y (current page): 0 Boundary Width: 0 StickyPage: Yes StickyDesk: Yes StickyPageIcon: No StickyDeskIcon: No NoTitle: Yes Iconified: No Transient: No WindowListSkip: Yes Gravity: NorthWest Geometry: 3840x1920+0+0 Focus Policy: Locally Active - Input Field: True -WM_TAKE_FOCUS: Present EWMH Window Type: Desktop
xwininfo: Window id: 0x5400006 "x-caja-desktop" Absolute upper-left X: 0 Absolute upper-left Y: 0 Relative upper-left X: 0 Relative upper-left Y: 0 Width: 3840 Height: 1920 Depth: 24 Visual: 0x2b Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x5400005 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +0+0 -0+0 -0-0 +0-0 -geometry 3840x1920+0+0
I am also looking through the Caja source code to see if it sets up anything to prevent focus on mouseover going to the desktop, but I’m not familiar enough with this issue yet to know whether it’s the deliberate work of Caja, a side effect of the applicable EWMH, or something else. Any advice will be appreciated.