From 88048a74d16b49f1167a374edfe381819dfe6816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Ignacio=20D=C3=ADaz?= Date: Tue, 20 Sep 2022 12:31:23 -0300 Subject: [PATCH] use DefaultRootWindow macro --- main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.c b/main.c index 4ed7e00..d44f184 100644 --- a/main.c +++ b/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; }