wmii

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

insetrect.c (242B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 Rectangle
      7 insetrect(Rectangle r, int n) {
      8 	r.min.x += n;
      9 	r.min.y += n;
     10 	r.max.x -= n;
     11 	r.max.y -= n;
     12 	return r;
     13 }