main(void) { Display *d; Window w; XEvent e; char *msg = "Hello, World!"; int s; bool done = false; /* open connection with the server */ d = XOpenDisplay(NULL);
open connection with the server */ c = xcb_connect(NULL,NULL); if (xcb_connection_has_error(c)) { printf("Cannot open display\n"); exit(1); } /* get the
[2016-03-08]. (原始内容存档于2013-12-06). Høgsberg, Kristian. Wayland – A New DisplayServer for Linux. Linux Plumbers Conference, 2009. [2010-11-23]. (原始内容存档于2011-07-27)