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
|
#endif
|
||||||
|
|
||||||
static Display *dpy;
|
static Display *dpy;
|
||||||
static int screen;
|
|
||||||
static Window root;
|
static Window root;
|
||||||
static unsigned short statusContinue = 1;
|
static unsigned short statusContinue = 1;
|
||||||
static struct epoll_event event;
|
static struct epoll_event event;
|
||||||
|
@ -166,8 +165,7 @@ int setupX() {
|
||||||
dpy = XOpenDisplay(NULL);
|
dpy = XOpenDisplay(NULL);
|
||||||
if (!dpy) return 1;
|
if (!dpy) return 1;
|
||||||
|
|
||||||
screen = DefaultScreen(dpy);
|
root = DefaultRootWindow(dpy);
|
||||||
root = RootWindow(dpy, screen);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue