forked from speedie/spmenu
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:
parent
d3c4cfd2cc
commit
bf5c36c245
2
spmenu.c
2
spmenu.c
|
@ -504,7 +504,7 @@ void get_mh(void) {
|
||||||
sp.mh = MIN(sp.mh, mo.output_height - epad);
|
sp.mh = MIN(sp.mh, mo.output_height - epad);
|
||||||
|
|
||||||
if (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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue