1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00

LibGUI+WindowServer: Rename window "override cursor" to just "cursor"

Let's just say each window has a cursor, there's not really overriding
going on.
This commit is contained in:
Andreas Kling 2020-09-10 20:55:39 +02:00
parent 40fbdd4e9e
commit b4f307f982
21 changed files with 80 additions and 80 deletions

View file

@ -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(Gfx::StandardCursor::Hand);
window()->set_cursor(Gfx::StandardCursor::Hand);
return;
}
window()->set_override_cursor(Gfx::StandardCursor::Arrow);
window()->set_cursor(Gfx::StandardCursor::Arrow);
AbstractButton::mousemove_event(event);
}
void KeyButton::leave_event(Core::Event& event)
{
window()->set_override_cursor(Gfx::StandardCursor::Arrow);
window()->set_cursor(Gfx::StandardCursor::Arrow);
AbstractButton::leave_event(event);
}