From dfa13b10b63d0a813db378c4212e90a32ee4d65c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 24 Oct 2009 23:34:04 +0000 Subject: [PATCH] Guard access to XF86VidModeSetViewPort --- source/gbase/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/gbase/window.cpp b/source/gbase/window.cpp index 06af1ae..22d73b1 100644 --- a/source/gbase/window.cpp +++ b/source/gbase/window.cpp @@ -456,12 +456,14 @@ bool Window::event(const Event &evnt) 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(priv->wm_delete_window)) -- 2.45.2