Fix struts to be inclusive

This commit is contained in:
NBonaparte 2017-02-23 20:11:25 -08:00 committed by GitHub
parent 63f0bb222e
commit 326bb4e59d

View file

@ -54,12 +54,12 @@ static void ya_setup_ewmh(ya_bar_t *bar) {
if (bar->position == YA_TOP) {
strut[2] = bar->height;
strut[8] = bar->hgap;
strut[9] = bar->hgap + bar->width;
strut[9] = bar->hgap + bar->width - 1;
}
else if (bar->position == YA_BOTTOM) {
strut[3] = bar->height;
strut[10] = bar->hgap;
strut[11] = bar->hgap + bar->width;
strut[11] = bar->hgap + bar->width - 1;
}
else {
//TODO right and left bars if implemented.