Skip to content

Commit

Permalink
Hide dummy window on Windows (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
greimela-si authored and wjwwood committed Oct 13, 2017
1 parent ee8050a commit 02d72fb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rviz_rendering/src/rviz_rendering/render_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ RenderSystem::makeRenderWindow(
params["left"] = std::to_string(0);
params["top"] = std::to_string(0);

// Hide dummy window borders on Windows
if (width <= 1) {
params["border"] = "none";
}

// params["externalGLControl"] = Ogre::String("true");

// Enable antialiasing
Expand Down Expand Up @@ -463,7 +468,12 @@ RenderSystem::makeRenderWindow(
throw std::runtime_error(msg);
}

window->setVisible(true);
// Hide dummy window immediately on Windows
if (width <= 1) {
window->setHidden(true);
} else {
window->setVisible(true);
}

stereo_supported_ = is_stereo;

Expand Down

0 comments on commit 02d72fb

Please sign in to comment.