From 838b579e080f62181eed17d8273fc18a13248252 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Mon, 15 Dec 2008 20:01:18 +0100 Subject: [PATCH] ewmh/infobar: Add ewmh_set_workarea in uicb_infobar_togglepos for update the workarea geometry when the bar is moving --- src/ewmh.c | 2 +- src/infobar.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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();