Avoid potential problems when the active window is known but not assigned to `wm->winactive`, where the first window would be used as a fallback. Instead, take a window argument, a fallback is still used as a last resort (when NULL).
Avoid potential problems when the active window is known but not assigned to `wm->winactive`, where the first window would be used as a fallback. Instead, take a window argument, a fallback is still used as a last resort (when NULL).