BugFix double clic output window

This commit is contained in:
Bruno Herbelin
2022-02-19 03:24:25 +01:00
parent f580673dea
commit caa05d739f

View File

@@ -3856,7 +3856,7 @@ void OutputPreview::Render()
// preview image
ImGui::Image((void*)(intptr_t)output->texture(), imagesize);
// raise window on double clic
if (ImGui::IsMouseDoubleClicked(0) )
if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left) )
Rendering::manager().outputWindow().show();
///