client.c
changeset 939 a1ac5930ba2f
parent 930 33e5eecb3311
child 941 8c93b982f22e
equal deleted inserted replaced
938:c73a49ccfa29 939:a1ac5930ba2f
   228 	attachstack(c);
   228 	attachstack(c);
   229 	XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
   229 	XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
   230 	setclientstate(c, IconicState);
   230 	setclientstate(c, IconicState);
   231 	c->isbanned = True;
   231 	c->isbanned = True;
   232 	focus(c);
   232 	focus(c);
   233 	lt->arrange();
   233 	lt->arrange(NULL);
   234 }
   234 }
   235 
   235 
   236 void
   236 void
   237 resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
   237 resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
   238 	float dx, dy, max, min, ratio;
   238 	float dx, dy, max, min, ratio;
   303 	if(!sel || lt->arrange == floating)
   303 	if(!sel || lt->arrange == floating)
   304 		return;
   304 		return;
   305 	sel->isfloating = !sel->isfloating;
   305 	sel->isfloating = !sel->isfloating;
   306 	if(sel->isfloating)
   306 	if(sel->isfloating)
   307 		resize(sel, sel->x, sel->y, sel->w, sel->h, True);
   307 		resize(sel, sel->x, sel->y, sel->w, sel->h, True);
   308 	lt->arrange();
   308 	lt->arrange(NULL);
   309 }
   309 }
   310 
   310 
   311 void
   311 void
   312 unban(Client *c) {
   312 unban(Client *c) {
   313 	if(!c->isbanned)
   313 	if(!c->isbanned)
   335 	free(c->tags);
   335 	free(c->tags);
   336 	free(c);
   336 	free(c);
   337 	XSync(dpy, False);
   337 	XSync(dpy, False);
   338 	XSetErrorHandler(xerror);
   338 	XSetErrorHandler(xerror);
   339 	XUngrabServer(dpy);
   339 	XUngrabServer(dpy);
   340 	lt->arrange();
   340 	lt->arrange(NULL);
   341 }
   341 }
   342 
   342 
   343 void
   343 void
   344 updatesizehints(Client *c) {
   344 updatesizehints(Client *c) {
   345 	long msize;
   345 	long msize;