wmii

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

mapwin.c (274B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 int
      7 mapwin(Window *w) {
      8 	assert(w->type == WWindow);
      9 	if(!w->mapped) {
     10 		XMapWindow(display, w->xid);
     11 		w->mapped = 1;
     12 		return 1;
     13 	}
     14 	return 0;
     15 }