浏览代码

LibGUI: Use widget override cursors in ColorInput

Andreas Kling 4 年之前
父节点
当前提交
d76b2d0baa
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Libraries/LibGUI/ColorInput.cpp

+ 2 - 2
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);