]> git.mxchange.org Git - flightgear.git/commitdiff
Add an 'overrideRedirect' flag to the window configuration section. For
authorCurtis L. Olson <curtolson@flightgear.org>
Wed, 5 Feb 2014 16:04:18 +0000 (10:04 -0600)
committerCurtis L. Olson <curtolson@flightgear.org>
Wed, 5 Feb 2014 16:04:18 +0000 (10:04 -0600)
multi-headed Gnome based linux systems, this provides an extra hint that we
really wish to open up our full screen window spanning all physical displays.
This works around a kink in the gnome window manager where it tries to "lie"
to applications about the full screen size assuming most applications don't
wish their windows to span multiple physical displays.

src/Viewer/WindowBuilder.cxx

index f48ea0e1dccc323a26f7604021e2a44e2931b00b..cae0038fdd2ace2a1a697764bc4af304243f487e 100644 (file)
@@ -177,6 +177,7 @@ GraphicsWindow* WindowBuilder::buildWindow(const SGPropertyNode* winNode)
     traitsSet |= setFromProperty(traits->screenNum, winNode, "screen");
 
     const SGPropertyNode* fullscreenNode = winNode->getNode("fullscreen");
+    const SGPropertyNode* ordNode = winNode->getNode("overrideRedirect");
 
     if (fullscreenNode && fullscreenNode->getBoolValue()) {
         // fullscreen mode
@@ -187,6 +188,8 @@ GraphicsWindow* WindowBuilder::buildWindow(const SGPropertyNode* winNode)
         traits->width = width;
         traits->height = height;
         traits->supportsResize = false;
+       bool overrideRedirect = ordNode && ordNode->getBoolValue();
+       traits->overrideRedirect = overrideRedirect;
         traits->x = 0;
         traits->y = 0;
         traitsSet = 1;