mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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:
parent
40fbdd4e9e
commit
b4f307f982
Notes:
sideshowbarker
2024-07-19 02:47:08 +09:00
Author: https://github.com/awesomekling
Commit: b4f307f982
21 changed files with 80 additions and 80 deletions
|
@ -62,12 +62,12 @@ void Splitter::override_cursor(bool do_override)
|
|||
{
|
||||
if (do_override) {
|
||||
if (!m_overriding_cursor) {
|
||||
window()->set_override_cursor(m_orientation == Orientation::Horizontal ? Gfx::StandardCursor::ResizeColumn : Gfx::StandardCursor::ResizeRow);
|
||||
window()->set_cursor(m_orientation == Orientation::Horizontal ? Gfx::StandardCursor::ResizeColumn : Gfx::StandardCursor::ResizeRow);
|
||||
m_overriding_cursor = true;
|
||||
}
|
||||
} else {
|
||||
if (m_overriding_cursor) {
|
||||
window()->set_override_cursor(Gfx::StandardCursor::None);
|
||||
window()->set_cursor(Gfx::StandardCursor::None);
|
||||
m_overriding_cursor = false;
|
||||
}
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ void Splitter::mouseup_event(MouseEvent& event)
|
|||
m_first_resizee = nullptr;
|
||||
m_second_resizee = nullptr;
|
||||
if (!rect().contains(event.position()))
|
||||
window()->set_override_cursor(Gfx::StandardCursor::None);
|
||||
window()->set_cursor(Gfx::StandardCursor::None);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue