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

@ -353,8 +353,7 @@ static void ImGui_ImplSDL2_ShowWindow(ImGuiViewport* viewport)
// SDL hack: Hide icon from task bar
// Note: SDL 2.0.6+ has a SDL_WINDOW_SKIP_TASKBAR flag which is supported under Windows but the way it create the window breaks our seamless transition.
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;