diff --git a/src/ewmh.c b/src/ewmh.c index e704979..56d739b 100644 --- a/src/ewmh.c +++ b/src/ewmh.c @@ -193,7 +193,7 @@ ewmh_set_workarea(void) for(j = 0; j < conf.ntag[i]; ++j) { data[pos++] = sgeo[i].x - BORDH; - data[pos++] = sgeo[i].y; + data[pos++] = sgeo[i].y - TBARH; data[pos++] = sgeo[i].width; data[pos++] = sgeo[i].height; } diff --git a/src/infobar.c b/src/infobar.c index c91c2d5..8e41cee 100644 --- a/src/infobar.c +++ b/src/infobar.c @@ -204,6 +204,7 @@ uicb_infobar_togglepos(uicb_t cmd) barwin_move(infobar[selscreen].bar, sgeo[selscreen].x - BORDH, infobar[selscreen].geo.y); infobar_draw(selscreen); + ewmh_set_workarea(); arrange();