wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

reparentwindow.c (331B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 void
      7 reparentwindow(Window *w, Window *par, Point p) {
      8 	assert(w->type == WWindow);
      9 	XReparentWindow(display, w->xid, par->xid, p.x, p.y);
     10 	w->r = rectsubpt(w->r, w->r.min);
     11 	w->r = rectaddpt(w->r, p);
     12 }