From 0b6211f90786edb3dfb770aa35a1e025a9019be8 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 29 Nov 2016 21:46:21 +0100 Subject: [PATCH] Fixed clicking on a window's void while staying still overzealously marking .ini settings as dirty (#923) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 6c259478..7598c24e 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2220,7 +2220,7 @@ void ImGui::NewFrame() if (!(g.MovedWindow->Flags & ImGuiWindowFlags_NoMove)) { g.MovedWindow->PosFloat += g.IO.MouseDelta; - if (!(g.MovedWindow->Flags & ImGuiWindowFlags_NoSavedSettings)) + if (!(g.MovedWindow->Flags & ImGuiWindowFlags_NoSavedSettings) && (g.IO.MouseDelta.x != 0.0f || g.IO.MouseDelta.y != 0.0f)) MarkSettingsDirty(); } FocusWindow(g.MovedWindow);