From c1d582b76e03638609b2ba44c46363d9f0059023 Mon Sep 17 00:00:00 2001 From: Bryan Bugyi Date: Mon, 6 Apr 2020 12:25:54 -0400 Subject: [PATCH] Fix focuslast command The last window should be focused iff there was a last window AND that window is still visible. --- dvtm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvtm.c b/dvtm.c index 2b7ebdc..4acb45f 100644 --- a/dvtm.c +++ b/dvtm.c @@ -1235,7 +1235,7 @@ focusprevnm(const char *args[]) { static void focuslast(const char *args[]) { - if (lastsel) + if (lastsel && isvisible(lastsel)) focus(lastsel); }