mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
LibGfx: Move StandardCursor enum to LibGfx
This enum existed both in LibGUI and WindowServer which was silly and error-prone.
This commit is contained in:
@@ -81,16 +81,16 @@ void KeyButton::mousemove_event(GUI::MouseEvent& event)
|
||||
Gfx::IntRect c = { rect().x() + 7, rect().y() + 4, rect().width() - 14, rect().height() - 14 };
|
||||
|
||||
if (c.contains(event.position())) {
|
||||
window()->set_override_cursor(GUI::StandardCursor::Hand);
|
||||
window()->set_override_cursor(Gfx::StandardCursor::Hand);
|
||||
return;
|
||||
}
|
||||
window()->set_override_cursor(GUI::StandardCursor::Arrow);
|
||||
window()->set_override_cursor(Gfx::StandardCursor::Arrow);
|
||||
|
||||
AbstractButton::mousemove_event(event);
|
||||
}
|
||||
|
||||
void KeyButton::leave_event(Core::Event& event)
|
||||
{
|
||||
window()->set_override_cursor(GUI::StandardCursor::Arrow);
|
||||
window()->set_override_cursor(Gfx::StandardCursor::Arrow);
|
||||
AbstractButton::leave_event(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user