summaryrefslogtreecommitdiff
path: root/xc/programs/xrefresh
diff options
context:
space:
mode:
authorswick <empty>1987-09-02 14:00:58 +0000
committerswick <empty>1987-09-02 14:00:58 +0000
commita708b159a19cf3947462488a02de398a8ad8cac4 (patch)
tree7873b31336152de9c8cd5409fc0d7d8473da26a7 /xc/programs/xrefresh
parent27d8eeb3d0815429cffd3a19a6114cd710be9259 (diff)
fixes to Zaphod mode per dshr
Diffstat (limited to 'xc/programs/xrefresh')
-rw-r--r--xc/programs/xrefresh/xrefresh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xc/programs/xrefresh/xrefresh.c b/xc/programs/xrefresh/xrefresh.c
index 9f0b83f5c..9531376bb 100644
--- a/xc/programs/xrefresh/xrefresh.c
+++ b/xc/programs/xrefresh/xrefresh.c
@@ -73,11 +73,11 @@ char *argv[];
dpy = StartConnectionToServer(argc, argv);
- xswa.background_pixel = BlackPixel(dpy, 0);
+ xswa.background_pixel = BlackPixel(dpy, DefaultScreen(dpy));
xswa.override_redirect = True;
visual.visualid = CopyFromParent;
- win = XCreateWindow(dpy, RootWindow(dpy, 0), 0, 0, 9999, 9999,
- 0, DefaultDepth(dpy, 0), InputOutput, &visual,
+ win = XCreateWindow(dpy, DefaultRootWindow(dpy), 0, 0, 9999, 9999,
+ 0, DefaultDepth(dpy, DefaultScreen(dpy)), InputOutput, &visual,
CWBackPixel | CWOverrideRedirect, &xswa);
XMapWindow(dpy, win);