mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 06:57:35 +00:00
WindowServer: Add support for per-window override cursors.
Use this to implement automatic switching to an I-beam cursor when hovering over a GTextEditor. :^)
This commit is contained in:
parent
42c95959a8
commit
dcf6726487
13 changed files with 110 additions and 0 deletions
|
@ -1261,5 +1261,8 @@ const WSCursor& WSWindowManager::active_cursor() const
|
|||
}
|
||||
}
|
||||
|
||||
if (m_hovered_window && m_hovered_window->override_cursor())
|
||||
return *m_hovered_window->override_cursor();
|
||||
|
||||
return *m_arrow_cursor;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue