client: Fix x base position of the managed client.

This commit is contained in:
Martin Duquesnoy 2008-12-02 20:02:35 +01:00
parent a4307b6364
commit be5346ef30
2 changed files with 4 additions and 3 deletions

View File

@ -360,7 +360,7 @@ client_manage(Window w, XWindowAttributes *wa)
c = emalloc(1, sizeof(Client));
c->win = w;
c->screen = screen_get_sel();
c->ogeo.x = c->geo.x = wa->x;
c->ogeo.x = c->geo.x = wa->x + BORDH;
c->ogeo.y = c->geo.y = wa->y + TBARH + INFOBARH;
c->ogeo.width = c->geo.width = wa->width;
c->ogeo.height = c->geo.height = wa->height;

View File

@ -123,7 +123,7 @@ void
mainloop(void)
{
fd_set fd;
int len, r, offset = 0;
int len, r, offset = 0, i;
char sbuf[sizeof statustext], *p;
Bool readstdin = True;
XEvent ev;
@ -163,7 +163,8 @@ mainloop(void)
strncpy(statustext, sbuf, strlen(sbuf));
readstdin = False;
}
infobar_draw(screen_get_sel());
for(i = 0; i < screen_count(); ++i)
infobar_draw(i);
}
while(XPending(dpy))
{