#else
Bool match_event_type(Display *, XEvent *event, XPointer arg)
{
- return event->type==reinterpret_cast<int>(arg);
+ return event->type==*reinterpret_cast<int *>(arg);
}
#endif
// Wait for the window to be unmapped. This makes window managers happy.
XEvent ev;
- XPeekIfEvent(dpy, &ev, match_event_type, reinterpret_cast<XPointer>(UnmapNotify));
+ int ev_type=UnmapNotify;
+ XPeekIfEvent(dpy, &ev, match_event_type, reinterpret_cast<char *>(&ev_type));
}
XSetWindowAttributes attr;