diff --git a/dwm.c b/dwm.c index 6a6fb1c..6c15e25 100644 --- a/dwm.c +++ b/dwm.c @@ -266,7 +266,7 @@ static void (*handler[LASTEvent]) (XEvent *) = { [PropertyNotify] = propertynotify, [UnmapNotify] = unmapnotify }; -static Atom wmatom[WMLast], netatom[NetLast]; +static Atom wmatom[WMLast], netatom[NetLast], xatom[XLast]; static int running = 1; static Cur *cursor[CurLast]; static Clr **scheme; @@ -1181,7 +1181,7 @@ void maprequest(XEvent *e) { static XWindowAttributes wa; - XMapRequestEvent *ev = &e->xaprequest; + XMapRequestEvent *ev = &e->xmaprequest; if (!XGetWindowAttributes(dpy, ev->window, &wa) || wa.override_redirect) return;