if (keyswindata->max >= win->height) {
if (keyswindata->select > win->height / 2) {
if (keyswindata->select < (keyswindata->max - (win->height / 2)))
offset = keyswindata->select - (win->height / 2);
else
offset = keyswindata->max - win->height + 1; } }
if (keyswindata->max >= win->height) {
if (keyswindata->select > win->height / 2) {
if (keyswindata->select < (keyswindata->max - (win->height / 2)))
offset = keyswindata->select - (win->height / 2);
else
offset = keyswindata->max - win->height + 1; } }