wmii

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

setborder.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 setborder(Window *w, int width, Color *col) {
      8 
      9 	assert(w->type == WWindow);
     10 	if(width)
     11 		XSetWindowBorder(display, w->xid, pixelvalue(w, col));
     12 	if(width != w->border)
     13 		configwin(w, w->r, width);
     14 }