summaryrefslogtreecommitdiff
path: root/initx.c
blob: 9e2b5d77ed48c78561c1dfec071ba915dfb0e302 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# include <luma/main.h>
# include <stdint.h>
# include <stdio.h>
# include <xcb/xcb.h>
void luma__initx(uint32_t * retval) {
	if(luma__dat.xconn) {
		luma__dat.xconn = xcb_connect(NULL,NULL);
	}
	else {
		printf("luma__crtxconn called with a valid X connection!\n");
		*retval = 0x1;
		return;
	}
}