]> 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 303d542a28585ae2574b896ca6ea39fe38db1956..fb585f0c19b69a68c8e82aed392a3ab8de6ea887 100644 (file)
@@ -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);