wmii

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

XRect.c (263B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 XRectangle
      7 XRect(Rectangle r) {
      8 	XRectangle xr;
      9 
     10 	xr.x = r.min.x;
     11 	xr.y = r.min.y;
     12 	xr.width = Dx(r);
     13 	xr.height = Dy(r);
     14 	return xr;
     15 }