ewmh/infobar: Add ewmh_set_workarea in uicb_infobar_togglepos for update the workarea geometry when the bar is moving

This commit is contained in:
Martin Duquesnoy 2008-12-15 20:01:18 +01:00
parent 4594561647
commit 838b579e08
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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();