use DefaultRootWindow.

This commit is contained in:
Miroslav Šedivý
2023-04-18 23:48:44 +02:00
parent 0ea1c2870f
commit 3ef4c5ce0f
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ static int XEventError(Display *display, XErrorEvent *event) {
void XEventLoop(char *name) {
Display *display = XOpenDisplay(name);
Window root = RootWindow(display, 0);
Window root = DefaultRootWindow(display);
int xfixes_event_base, xfixes_error_base;
if (!XFixesQueryExtension(display, &xfixes_event_base, &xfixes_error_base)) {