summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 097d3d8..090a247 100644
--- a/ui.c
+++ b/ui.c
@@ -733,9 +733,10 @@ static void inputUpdate(void) {
}
static void windowShow(uint num) {
+ windows.user = num;
+ if (windows.show == num) return;
windows.swap = windows.show;
windows.show = num;
- windows.user = num;
mark(windows.ptrs[windows.swap]);
unmark(windows.ptrs[windows.show]);
windowUpdate();