client: Fix x base position of the managed client.
This commit is contained in:
parent
a4307b6364
commit
be5346ef30
@ -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;
|
||||
|
||||
@ -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))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user