#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;
resizing=false;
signal_resize.emit(options.width, options.height);
}
+#ifdef WITH_XF86VIDMODE
if(options.fullscreen)
{
::Display *dpy=display.get_private().display;
int screen=DefaultScreen(dpy);
XF86VidModeSetViewPort(dpy, screen, ev.xconfigure.x, ev.xconfigure.y);
}
+#endif
break;
case ClientMessage:
if(ev.xclient.data.l[0]==static_cast<long>(priv->wm_delete_window))