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
5
ui.c
5
ui.c
|
@ -770,10 +770,11 @@ static void inputUpdate(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void windowShow(uint num) {
|
static void windowShow(uint num) {
|
||||||
windows.user = num;
|
if (num != windows.show) {
|
||||||
if (windows.show == num) return;
|
|
||||||
windows.swap = windows.show;
|
windows.swap = windows.show;
|
||||||
|
}
|
||||||
windows.show = num;
|
windows.show = num;
|
||||||
|
windows.user = num;
|
||||||
mark(windows.ptrs[windows.swap]);
|
mark(windows.ptrs[windows.swap]);
|
||||||
unmark(windows.ptrs[windows.show]);
|
unmark(windows.ptrs[windows.show]);
|
||||||
mainUpdate();
|
mainUpdate();
|
||||||
|
|
Loading…
Reference in New Issue