[Xcb-commit] xcb-demo xdpyinfo.c,1.9,1.10

Jamey Sharp xcb-commit at lists.freedesktop.org
Mon Dec 19 13:21:09 PST 2005


Update of /cvs/xcb/xcb-demo
In directory gabe:/tmp/cvs-serv22112

Modified Files:
	xdpyinfo.c 
Log Message:
Implement the default screen number output.

Index: xdpyinfo.c
===================================================================
RCS file: /cvs/xcb/xcb-demo/xdpyinfo.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- xdpyinfo.c	19 Dec 2005 21:06:08 -0000	1.9
+++ xdpyinfo.c	19 Dec 2005 21:21:06 -0000	1.10
@@ -16,8 +16,9 @@
 int main(int argc, char **argv)
 {
     void (*ext_printer)(int, char *) = print_extension;
+    int screen;
 
-    c = XCBConnect(0, 0);
+    c = XCBConnect(0, &screen);
     if(!c)
     {
 	fputs("Connect failed.\n", stderr);
@@ -32,7 +33,7 @@
     print_setup(c);
     /* "\n" "focus:  window 0x%x, revert to %s" (e.g. PointerRoot) */
     list_extensions(ext_printer);
-    /* "\n" "default screen number:    %d" */
+    printf("\n" "default screen number:    %d", screen);
     list_screens();
     fputs("\n", stdout);
 



More information about the xcb-commit mailing list