From 53457b7df5c8293300021d7c3cac1eb3621f029c Mon Sep 17 00:00:00 2001 From: IrishBruse Date: Sun, 24 Dec 2023 02:16:03 +0000 Subject: [PATCH] Fix layer deselection when using the mouse --- Fushigi/ui/widgets/CourseScene.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Fushigi/ui/widgets/CourseScene.cs b/Fushigi/ui/widgets/CourseScene.cs index a4b580ca..2ec324c0 100644 --- a/Fushigi/ui/widgets/CourseScene.cs +++ b/Fushigi/ui/widgets/CourseScene.cs @@ -300,9 +300,12 @@ void SelectPalette(string name, string palette) if (ImGui.IsWindowFocused()) { - selectedArea = area; + if (selectedArea != area) + { + selectedArea = area; + mHasFilledLayers = false; + } activeViewport = viewport; - mHasFilledLayers = false; } var topLeft = ImGui.GetCursorScreenPos();