|
@@ -2220,7 +2220,7 @@ void ImGui::NewFrame()
|
|
if (!(g.MovedWindow->Flags & ImGuiWindowFlags_NoMove))
|
|
if (!(g.MovedWindow->Flags & ImGuiWindowFlags_NoMove))
|
|
{
|
|
{
|
|
g.MovedWindow->PosFloat += g.IO.MouseDelta;
|
|
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();
|
|
MarkSettingsDirty();
|
|
}
|
|
}
|
|
FocusWindow(g.MovedWindow);
|
|
FocusWindow(g.MovedWindow);
|