client.c
changeset 837 123231b9eb87
parent 830 5a4fd8fec414
child 848 944739ec944a
equal deleted inserted replaced
836:52c1caae3fab 837:123231b9eb87
   201 	XSetWindowBorder(dpy, w, dc.norm[ColBorder]);
   201 	XSetWindowBorder(dpy, w, dc.norm[ColBorder]);
   202 	configure(c); /* propagates border_width, if size doesn't change */
   202 	configure(c); /* propagates border_width, if size doesn't change */
   203 	updatetitle(c);
   203 	updatetitle(c);
   204 	for(t = clients; t && t->win != trans; t = t->next);
   204 	for(t = clients; t && t->win != trans; t = t->next);
   205 	settags(c, t);
   205 	settags(c, t);
   206 	if(!c->isuntiled)
   206 	if(!c->isfloating)
   207 		c->isuntiled = (t != NULL) || c->isfixed;
   207 		c->isfloating = (t != NULL) || c->isfixed;
   208 	attach(c);
   208 	attach(c);
   209 	attachstack(c);
   209 	attachstack(c);
   210 	c->isbanned = True;
   210 	c->isbanned = True;
   211 	XMoveWindow(dpy, w, c->x + 2 * sw, c->y);
   211 	XMoveWindow(dpy, w, c->x + 2 * sw, c->y);
   212 	XMapWindow(dpy, w);
   212 	XMapWindow(dpy, w);
   283 		XSync(dpy, False);
   283 		XSync(dpy, False);
   284 	}
   284 	}
   285 }
   285 }
   286 
   286 
   287 void
   287 void
   288 toggletiled(const char *arg) {
   288 togglefloating(const char *arg) {
   289 	if(!sel || lt->arrange == untile)
   289 	if(!sel || lt->arrange == floating)
   290 		return;
   290 		return;
   291 	sel->isuntiled = !sel->isuntiled;
   291 	sel->isfloating = !sel->isfloating;
   292 	lt->arrange();
   292 	lt->arrange();
   293 }
   293 }
   294 
   294 
   295 void
   295 void
   296 updatesizehints(Client *c) {
   296 updatesizehints(Client *c) {