From 0e0fa13f32ec25cd73866960017721dd0135ad29 Mon Sep 17 00:00:00 2001 From: Sean Pringle Date: Thu, 11 Feb 2016 20:18:20 +1100 Subject: [PATCH] initialize current_spot and current_mon --- setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.c b/setup.c index 851e2b8..0e904c2 100644 --- a/setup.c +++ b/setup.c @@ -103,6 +103,10 @@ void setup() } memmove(monitors, padded, sizeof(Monitor) * MONITORS); + // if spot_start is CURRENT, first window needs somewhere to go + current_spot = SPOT1; + current_mon = 0; + // calculate spot boxes for_monitors(i, m) {