diff options
author | Jon TURNEY <[email protected]> | 2009-06-21 11:58:25 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-30 13:58:21 -0600 |
commit | 57955451f80c64f70e369508705ae95a515d18d8 (patch) | |
tree | fd52b8c28f3fbf46cd1122d859eeac4ec1fd9b08 /progs/xdemos/glxheads.c | |
parent | e5cb11addad31f698dc8261e7f96d5e3af4a85d6 (diff) |
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 <[email protected]>
Diffstat (limited to 'progs/xdemos/glxheads.c')
-rw-r--r-- | progs/xdemos/glxheads.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/progs/xdemos/glxheads.c b/progs/xdemos/glxheads.c index b3290e90d51..b1a63d3d50c 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); } |