about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index f44073a..e75e0eb 100644
--- a/ui.c
+++ b/ui.c
@@ -772,10 +772,10 @@ static void inputUpdate(void) {
 static void windowShow(uint num) {
 	if (num != windows.show) {
 		windows.swap = windows.show;
+		mark(windows.ptrs[windows.swap]);
 	}
 	windows.show = num;
 	windows.user = num;
-	mark(windows.ptrs[windows.swap]);
 	unmark(windows.ptrs[windows.show]);
 	mainUpdate();
 	inputUpdate();