mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
use DefaultRootWindow.
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user