From 4475ac5653bdfc37e75cd33ed104dd6b19215591 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 13 Oct 2019 17:30:09 +0300 Subject: [PATCH] focus window on ws change --- sowm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sowm.c b/sowm.c index 7b4ee92..93ff0ba 100644 --- a/sowm.c +++ b/sowm.c @@ -292,6 +292,8 @@ void ws_go(const Arg arg) { if (list) for WIN XUnmapWindow(dis, c->win); ws_sel(arg.i); + + if (list) XSetInputFocus(dis, list->win, RevertToParent, CurrentTime); } void ws_save(int i) {