summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorMustafa Quraish <mustafaq9@gmail.com>2021-08-27 23:24:38 -0400
committerLinus Groh <mail@linusgroh.de>2021-08-28 08:10:44 +0100
commit5a8ac56fb995cba49d447081ddb0305c270ddc40 (patch)
treeec4c08bc4ae39f6f0e923552070df8d33640de36 /Userland
parent01b38ffc9aaa2c0096edcd9d91212a9c65036d22 (diff)
downloadserenity-5a8ac56fb995cba49d447081ddb0305c270ddc40.zip
PixelPaint: Always change cursor when active tool is set
Previously, if you used one of the keyboard shortcuts to select a different tool, it didn't change the cursor to the corresponding one till you clicked somewhere / did something else to trigger an update. This was pretty jarring since there's no indication as to whether the tool change was successful or not. This patch just calls `set_override_cursor()` when a valid active tool is set to immediately update it.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/PixelPaint/ImageEditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp
index 83185f1f64..79e8c357ce 100644
--- a/Userland/Applications/PixelPaint/ImageEditor.cpp
+++ b/Userland/Applications/PixelPaint/ImageEditor.cpp
@@ -318,6 +318,7 @@ void ImageEditor::set_active_tool(Tool* tool)
m_active_tool->setup(*this);
m_active_tool->on_tool_activation();
m_active_cursor = m_active_tool->cursor();
+ set_override_cursor(m_active_cursor);
}
}