Fix focusing

This commit is contained in:
Kevin Lange 2012-02-23 01:40:37 -06:00
parent 52dd077032
commit 7e71b3c2af

View File

@ -162,9 +162,11 @@ window_t * top_at(uint16_t x, uint16_t y) {
if (window_top == NULL) {
window_top = win;
index_top = win->z;
continue;
} else {
if (win->z < index_top) continue;
window_top = win;
index_top = win->z;
}
if (win->z < index_top) continue;
}
}
}