Fix M-a so it properly cycles back to where it started
parent
7470a705b3
commit
f3fa88ef92
9
ui.c
9
ui.c
|
@ -697,12 +697,10 @@ void uiCloseNum(size_t num) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void showAuto(void) {
|
static void showAuto(void) {
|
||||||
static bool origin;
|
static struct Window *other;
|
||||||
if (!origin) {
|
if (windows.other != other) {
|
||||||
windows.other = windows.active;
|
other = windows.active;
|
||||||
origin = true;
|
|
||||||
}
|
}
|
||||||
struct Window *other = windows.other;
|
|
||||||
for (struct Window *window = windows.head; window; window = window->next) {
|
for (struct Window *window = windows.head; window; window = window->next) {
|
||||||
if (window->heat < Hot) continue;
|
if (window->heat < Hot) continue;
|
||||||
windowShow(window);
|
windowShow(window);
|
||||||
|
@ -716,7 +714,6 @@ static void showAuto(void) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
windowShow(windows.other);
|
windowShow(windows.other);
|
||||||
origin = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void keyCode(int code) {
|
static void keyCode(int code) {
|
||||||
|
|
Loading…
Reference in New Issue