about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-13 05:10:55 -0500
committerJune McEnroe <june@causal.agency>2020-02-13 05:10:55 -0500
commita6bc2ea7c38814a5fd552826393cb870efdc263b (patch)
tree36f90312e5f17edc1ff85f47a46d337745654f93
parentRefactor windows into array and add /move (diff)
downloadcatgirl-a6bc2ea7c38814a5fd552826393cb870efdc263b.tar.gz
catgirl-a6bc2ea7c38814a5fd552826393cb870efdc263b.zip
Set swap correctly when closing a window
I knew I missed something.
-rw-r--r--ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index b1eedaf..2fbb720 100644
--- a/ui.c
+++ b/ui.c
@@ -797,6 +797,7 @@ static void windowClose(size_t num) {
 	if (windows.swap >= num) windows.swap--;
 	if (windows.show == num) {
 		windowShow(windows.swap);
+		windows.swap = windows.show;
 	} else if (windows.show > num) {
 		windows.show--;
 	}
017-07-30Add index.htmlJune McEnroe 2017-07-30Add snapshot.shJune McEnroe 2017-07-30Fix termcap patch for background colorsJune McEnroe 2017-07-30Update helpJune McEnroe 2017-07-30Fix help to track colorJune McEnroe 2017-07-30Support background colorsJune McEnroe 2017-07-30Track color only client-sideJune McEnroe 2017-07-30Add ostensible support for background colorsJune McEnroe 2017-07-30Add tile create and access timestampsJune McEnroe 2017-07-30Assert stable struct Tile field offsetsJune McEnroe 2017-07-30Add chroot.shJune McEnroe 2017-07-30Add ` commandJune McEnroe 2017-07-30Add sshd_configJune McEnroe 2017-07-30Add termcap patchJune McEnroe