mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
WindowServer: Always use the automatic cursor tracking window's cursor
Whenever we're in the "automatic cursor tracking" state, we should only display the tracking window's cursor, as the state is globally modal.
This commit is contained in:
parent
296e68fdbf
commit
072dde9387
1 changed files with 4 additions and 1 deletions
|
@ -1971,7 +1971,10 @@ Cursor const& WindowManager::active_cursor() const
|
|||
}
|
||||
}
|
||||
|
||||
if (m_hovered_window) {
|
||||
if (m_automatic_cursor_tracking_window) {
|
||||
if (m_automatic_cursor_tracking_window->cursor())
|
||||
return *m_automatic_cursor_tracking_window->cursor();
|
||||
} else if (m_hovered_window) {
|
||||
if (auto* modal_window = const_cast<Window&>(*m_hovered_window).blocking_modal_window()) {
|
||||
if (modal_window->cursor())
|
||||
return *modal_window->cursor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue