The DontFocusOffscreen Patch This patch attempts to prevent input focus from being transferred inappropriately to windows that are not on the screen (on a different desk or a different page). It addresses two problems: 1. Focus transfer when a new window opens When opening a new ClickToFocus window, FVWM wants to transfer the input focus to it. This is not particularly desirable if the new window happens to be on another desk or page and Skip Mapping is in effect - i.e., the window is not visible on-screen, so you don't see where your focus went. This patch prevents that loss of focus. The problem is compounded if you have applied the StartsOnPage patch. FVWM notices if the new window is on a different desk, and refuses to give it focus (although you've already lost focus from the window you wanted to be typing in). But StartsOnPage didn't take this into account, so you can not only have your focus stolen, but actually given to the off-screen window. This patch was going to be a correction to StartsOnPage, but it fixes problems in systems without StartsOnPage, so I've kept it separate. But, if you apply the StartsOnPage patch, you should *definitely* apply this one too. 2. Focus transfer when an app closes When an app closes, FVWM will try to restore focus to the next window in the chain, even if it is not on the currently visible page. The typical symptom is that you appear to be on the root window, but your root bindings stop working. Or, you could find yourself typing in a window that you didn't expect. This patch will cause focus to revert to the root context when an app closes, if there is not a reasonable focus candidate on the currently visible page (or the current desk). NOTE: The patch does not prevent an off-screen window from *having* the focus (this could be useful in certain situations), just from having focus transferred to it when it's off-screen.