summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2005-12-19 21:21:06 +0000
committerJamey Sharp <jamey@minilop.net>2005-12-19 21:21:06 +0000
commita7e912ab731184831991035430d476e631f9e37e (patch)
treedcea00a215068ea57ca2600c3f48151d17057e56
parent4e6cd1b290ba236d4751bb159e051d2372980d32 (diff)
Implement the default screen number output.
-rw-r--r--xcb-demo/xdpyinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xcb-demo/xdpyinfo.c b/xcb-demo/xdpyinfo.c
index 3b2adbb..3b3717d 100644
--- a/xcb-demo/xdpyinfo.c
+++ b/xcb-demo/xdpyinfo.c
@@ -16,8 +16,9 @@ void print_screen(XCBSCREEN *s);
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 @@ int main(int argc, char **argv)
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);