use DefaultRootWindow macro
This commit is contained in:
parent
6a97f4d0c5
commit
88048a74d1
4
main.c
4
main.c
|
@ -36,7 +36,6 @@ typedef const struct {
|
|||
#endif
|
||||
|
||||
static Display *dpy;
|
||||
static int screen;
|
||||
static Window root;
|
||||
static unsigned short statusContinue = 1;
|
||||
static struct epoll_event event;
|
||||
|
@ -166,8 +165,7 @@ int setupX() {
|
|||
dpy = XOpenDisplay(NULL);
|
||||
if (!dpy) return 1;
|
||||
|
||||
screen = DefaultScreen(dpy);
|
||||
root = RootWindow(dpy, screen);
|
||||
root = DefaultRootWindow(dpy);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue