Viewport: Popups, Tooltips can individually request no task bar icons to the platform layer. (#1542)

This commit is contained in:
omar
2018-04-10 19:15:44 +02:00
parent 0eaddb4dcd
commit 0d5042f0f3
12 changed files with 25 additions and 20 deletions

View File

@ -410,8 +410,7 @@ static void ImGui_ImplGlfw_ShowWindow(ImGuiViewport* viewport)
#if defined(_WIN32)
// GLFW hack: Hide icon from task bar
HWND hwnd = glfwGetWin32Window(data->Window);
ImGuiIO& io = ImGui::GetIO();
if (io.ConfigFlags & ImGuiConfigFlags_NoTaskBarForViewports)
if (viewport->Flags & ImGuiViewportFlags_NoTaskBarIcon)
{
LONG ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE);
ex_style &= ~WS_EX_APPWINDOW;