fixed compatibility with newer magellan clients

pull/65/head
John Tsiombikas 2022-04-09 06:51:22 +03:00
rodzic 01634327c3
commit 8383f8d493
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -57,7 +57,8 @@ static int xioerr(Display *dpy);
static Display *dpy;
static Window win;
static Atom xa_event_motion, xa_event_bpress, xa_event_brelease, xa_event_cmd;
static Atom xa_event_motion, xa_event_bpress, xa_event_brelease;
static Atom xa_event_devdisc, xa_event_cmd;
/* XXX This stands in for the client sensitivity. Due to the
* bad design of the original magellan protocol, we can't know
@ -137,6 +138,7 @@ int init_x11(void)
xa_event_motion = XInternAtom(dpy, "MotionEvent", False);
xa_event_bpress = XInternAtom(dpy, "ButtonPressEvent", False);
xa_event_brelease = XInternAtom(dpy, "ButtonReleaseEvent", False);
xa_event_devdisc = XInternAtom(dpy, "DeviceDisconnectEvent", False);
xa_event_cmd = XInternAtom(dpy, "CommandEvent", False);
/* Create a dummy window, so that clients are able to send us events