From d76b2d0baa01e0040eb14ec76cdae1b051aa3a54 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 11 Sep 2020 14:51:02 +0200 Subject: [PATCH] LibGUI: Use widget override cursors in ColorInput --- Libraries/LibGUI/ColorInput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibGUI/ColorInput.cpp b/Libraries/LibGUI/ColorInput.cpp index 2ecff12385..1dae9398a2 100644 --- a/Libraries/LibGUI/ColorInput.cpp +++ b/Libraries/LibGUI/ColorInput.cpp @@ -100,11 +100,11 @@ void ColorInput::mouseup_event(MouseEvent& event) void ColorInput::mousemove_event(MouseEvent& event) { if (color_rect().contains(event.position())) { - window()->set_cursor(Gfx::StandardCursor::Hand); + set_override_cursor(Gfx::StandardCursor::Hand); event.accept(); return; } else { - window()->set_cursor(Gfx::StandardCursor::IBeam); + set_override_cursor(Gfx::StandardCursor::IBeam); } TextEditor::mousemove_event(event);