From 57955451f80c64f70e369508705ae95a515d18d8 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Sun, 21 Jun 2009 11:58:25 +0100 Subject: xdemos: Fix xdemos which default to using display :0.0 to default to $DISPLAY Fix xdemos which default to using display :0.0 to default to $DISPLAY, this is kind of irritating when testing on a display other than :0.0 Signed-off-by: Jon TURNEY --- progs/xdemos/glxheads.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'progs/xdemos/glxheads.c') diff --git a/progs/xdemos/glxheads.c b/progs/xdemos/glxheads.c index b3290e90d5..b1a63d3d50 100644 --- a/progs/xdemos/glxheads.c +++ b/progs/xdemos/glxheads.c @@ -267,7 +267,8 @@ main(int argc, char *argv[]) printf(" glxheads xdisplayname ...\n"); printf("Example:\n"); printf(" glxheads :0 mars:0 venus:1\n"); - h = AddHead(":0"); + + h = AddHead(XDisplayName(NULL)); if (h) PrintInfo(h); } -- cgit v1.2.3