wmii

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

createwindow_rgba.c (542B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 Window*
      7 createwindow_rgba(Window *parent, Rectangle r, WinAttr *wa, int valmask) {
      8 	WinAttr attr;
      9 
     10 	if(scr.visual32 == nil)
     11 		return createwindow(parent, r, scr.depth, InputOutput, wa, valmask);
     12 
     13 	attr = wa ? *wa : (WinAttr){0};
     14 	valmask |= CWBorderPixel | CWColormap;
     15 	attr.border_pixel = 0;
     16 	attr.colormap = scr.colormap32;
     17 	return createwindow_visual(parent, r, 32, scr.visual32, InputOutput, &attr, valmask);
     18 }