]> git.tdb.fi Git - libs/gui.git/commitdiff
Guard access to XF86VidModeSetViewPort
authorMikko Rasa <tdb@tdb.fi>
Sat, 24 Oct 2009 23:34:04 +0000 (23:34 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sat, 24 Oct 2009 23:34:04 +0000 (23:34 +0000)
source/gbase/window.cpp

index 06af1ae7662fae81ed8b18c07db8b05ecd4aee0a..22d73b1da2ada5fe7876e82f0653d030a576450a 100644 (file)
@@ -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<long>(priv->wm_delete_window))