Only skip setting swap in windowShow
With the early return, mainUpdate doesn't get called in cases where other functions expect windowShow to call it, such as when closing or moving windows.master
parent
d16ee121e5
commit
89a2fac05a
7
ui.c
7
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();
|
||||
|
|
Loading…
Reference in New Issue