client.c
changeset 784 74722317b171
parent 782 92862ab407d5
child 785 179a71394e49
equal deleted inserted replaced
783:6261a0db7acb 784:74722317b171
   251 	XSetWindowBorder(dpy, w, dc.norm[ColBorder]);
   251 	XSetWindowBorder(dpy, w, dc.norm[ColBorder]);
   252 	configure(c); /* propagates border_width, if size doesn't change */
   252 	configure(c); /* propagates border_width, if size doesn't change */
   253 	updatetitle(c);
   253 	updatetitle(c);
   254 	for(t = clients; t && t->win != trans; t = t->next);
   254 	for(t = clients; t && t->win != trans; t = t->next);
   255 	settags(c, t);
   255 	settags(c, t);
   256 	if(!c->isfloat)
   256 	if(!c->swimming)
   257 		c->isfloat = (t != NULL) || c->isfixed;
   257 		c->swimming = (t != NULL) || c->isfixed;
   258 	attach(c);
   258 	attach(c);
   259 	attachstack(c);
   259 	attachstack(c);
   260 	c->isbanned = True;
   260 	c->isbanned = True;
   261 	XMoveWindow(dpy, w, c->x + 2 * sw, c->y);
   261 	XMoveWindow(dpy, w, c->x + 2 * sw, c->y);
   262 	XMapWindow(dpy, w);
   262 	XMapWindow(dpy, w);
   266 	lt->arrange();
   266 	lt->arrange();
   267 }
   267 }
   268 
   268 
   269 Client *
   269 Client *
   270 nexttiled(Client *c) {
   270 nexttiled(Client *c) {
   271 	for(; c && (c->isfloat || !isvisible(c)); c = c->next);
   271 	for(; c && (c->swimming || !isvisible(c)); c = c->next);
   272 	return c;
   272 	return c;
   273 }
   273 }
   274 
   274 
   275 void
   275 void
   276 resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
   276 resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
   438 	unsigned int n;
   438 	unsigned int n;
   439 	Client *c;
   439 	Client *c;
   440 
   440 
   441 	if(!sel)
   441 	if(!sel)
   442 		return;
   442 		return;
   443 	if(sel->isfloat || (lt->arrange == dofloat)) {
   443 	if(sel->swimming || (lt->arrange == swim)) {
   444 		togglemax(sel);
   444 		togglemax(sel);
   445 		return;
   445 		return;
   446 	}
   446 	}
   447 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
   447 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
   448 		n++;
   448 		n++;