diff --git a/ui.c b/ui.c index 23312ed..c2c848f 100644 --- a/ui.c +++ b/ui.c @@ -770,10 +770,11 @@ static void inputUpdate(void) { } static void windowShow(uint num) { - windows.user = num; - if (windows.show == num) return; - windows.swap = windows.show; + if (num != windows.show) { + windows.swap = windows.show; + } windows.show = num; + windows.user = num; mark(windows.ptrs[windows.swap]); unmark(windows.ptrs[windows.show]); mainUpdate();