Allow one more item to be displayed

While this means a VERY insignificant part of the spmenu client is cut
off in some cases (such as on my 1366x768 display), it allows one extra
item to be displayed and importantly for aesthetics, doesn't leave an
empty gap. I consider this worth it, but this might cause problems on
other screen resolutions. Please file a bug report in any such cases.
This commit is contained in:
Jacob 2023-09-06 18:53:49 +02:00
parent d3c4cfd2cc
commit bf5c36c245

View file

@ -504,7 +504,7 @@ void get_mh(void) {
sp.mh = MIN(sp.mh, mo.output_height - epad);
if (sp.mh == mo.output_height - epad) {
lines = ((mo.output_height - epad) / sp.bh) - 1;
lines = ((mo.output_height - epad) / sp.bh);
}
}
}