Fixed xgetrootname
See https://tronche.com/gui/x/xlib/ICC/client-to-window-manager/XFetchName.html
This commit is contained in:
parent
374283d5df
commit
69e2ff5759
|
@ -11,7 +11,7 @@ main(void)
|
|||
fputs("Error: could not open display.\n", stderr);
|
||||
return 1;
|
||||
}
|
||||
if (XFetchName(dpy, DefaultRootWindow(dpy), &name) && name[0])
|
||||
if (XFetchName(dpy, DefaultRootWindow(dpy), &name) && name)
|
||||
puts(name);
|
||||
else
|
||||
fputs("No name has been set for the root window.\n", stderr);
|
||||
|
|
Loading…
Reference in a new issue