]> git.tdb.fi Git - libs/gui.git/blobdiff - source/glwindow.cpp
Set override_redirect attribute when fullscreen is requested
[libs/gui.git] / source / glwindow.cpp
index 6657ea623bbbadf8cb5864546602bab1db2d2c97..fb585f0c19b69a68c8e82aed392a3ab8de6ea887 100644 (file)
@@ -6,7 +6,7 @@ Distributed under the LGPL
 */
 
 #include <vector>
-#include <msp/core/error.h>
+#include <msp/core/except.h>
 #include "glwindow.h"
 
 using namespace std;
@@ -103,8 +103,9 @@ void GLWindow::init()
        Colormap cmap=XCreateColormap(display, root, vi->visual, AllocNone);
        XSetWindowAttributes attr;
        attr.colormap=cmap;
+       attr.override_redirect=options.fullscreen;
 
-       Handle wnd=XCreateWindow(display, root, 0, 0, options.width, options.height, 0, vi->depth, InputOutput, vi->visual, CWColormap, &attr);
+       Handle wnd=XCreateWindow(display, root, 0, 0, options.width, options.height, 0, vi->depth, InputOutput, vi->visual, CWColormap|CWOverrideRedirect, &attr);
        set_window(wnd);
 
        glx_wnd=glXCreateWindow(display, config[0], wnd, 0);