From 589bb768d9926f106656db5c1fcef0cf2535724a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 19 Oct 2019 10:27:18 +0300 Subject: [PATCH] sowm: fix current --- sowm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sowm.c b/sowm.c index 084067f..6d6632f 100644 --- a/sowm.c +++ b/sowm.c @@ -247,11 +247,12 @@ void map_request(XEvent *e) { XSelectInput(d, w, StructureNotifyMask|EnterWindowMask); win_size(w, &wx, &wy, &ww, &wh); win_add(w); - win_focus(list->prev); + cur = list->prev; if (wx + wy == 0) win_center(); XMapWindow(d, w); + win_focus(list->prev); } void run(const Arg arg) {