client.c
changeset 544 88ebcfe64c2d
parent 543 722cffee3770
child 546 223b41c35619
equal deleted inserted replaced
543:722cffee3770 544:88ebcfe64c2d
   200 	XSetWindowAttributes twa;
   200 	XSetWindowAttributes twa;
   201 
   201 
   202 	c = emallocz(sizeof(Client));
   202 	c = emallocz(sizeof(Client));
   203 	c->tags = emallocz(ntags * sizeof(Bool));
   203 	c->tags = emallocz(ntags * sizeof(Bool));
   204 	c->win = w;
   204 	c->win = w;
   205 	c->x = c->tx = wa->x; c->x -= BORDERPX;
   205 	c->border = wa->border_width;
   206 	c->y = c->ty = wa->y; c->y -= BORDERPX;
   206 	c->x = c->tx = wa->x;
       
   207 	c->y = c->ty = wa->y;
   207 	c->w = c->tw = wa->width;
   208 	c->w = c->tw = wa->width;
   208 	c->h = wa->height;
   209 	c->h = wa->height;
   209 	c->th = bh;
   210 	c->th = bh;
   210 	c->border = 0;
       
   211 	updatesize(c);
   211 	updatesize(c);
   212 	if(c->x + c->w + 2 * BORDERPX > sw)
   212 	if(c->x + c->w + 2 * BORDERPX > sw)
   213 		c->x = sw - c->w - 2 * BORDERPX;
   213 		c->x = sw - c->w - 2 * BORDERPX;
   214 	if(c->x < sx)
   214 	if(c->x < sx)
   215 		c->x = sx;
   215 		c->x = sx;