JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix 'focus_mode = default' to ignore pointer position on startup.
authorReginald Kennedy <rk@rejii.com>
Sun, 26 Aug 2012 11:09:42 +0000 (19:09 +0800)
committerReginald Kennedy <rk@rejii.com>
Sun, 26 Aug 2012 11:09:45 +0000 (19:09 +0800)
spectrwm.c

index b2adf80..c69245b 100644 (file)
@@ -8708,7 +8708,7 @@ noconfig:
                }
 
                /* If just (re)started, set default focus if needed. */
-               if (winfocus && focus_mode == SWM_FOCUS_MANUAL) {
+               if (winfocus && focus_mode != SWM_FOCUS_FOLLOW) {
                        rr = winfocus->ws->r;
                        if (rr == NULL) {
                                /* not a visible window */