Introduction
Introduction Statistics Contact Development Disclaimer Help
tSimplify root window handling - spoon - dwm status utility (2f30 fork)
git clone git://src.adamsgaard.dk/spoon
Log
Files
Refs
LICENSE
---
commit 98241199d1a07c7acabf1444889be02df3ea71ef
parent 220e144b8b8571343211d22f246a5477cbc305d0
Author: sin <[email protected]>
Date: Sun, 15 May 2016 16:39:25 +0100
Simplify root window handling
Diffstat:
M spoon.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/spoon.c b/spoon.c
t@@ -189,18 +189,14 @@ loop(void)
{
char line[BUFSIZ];
Display *dpy;
- int screen;
- Window root;
dpy = XOpenDisplay(NULL);
if (dpy == NULL)
errx(1, "cannot open display");
- screen = DefaultScreen(dpy);
- root = RootWindow(dpy, screen);
for (;;) {
entcat(line, sizeof(line));
- XStoreName(dpy, root, line);
+ XStoreName(dpy, DefaultRootWindow(dpy), line);
XSync(dpy, False);
sleep(1);
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.