mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 04:09:00 +00:00
WindowServer: Apply the "wait" cursor to unresponsive windows
This commit is contained in:
parent
e99cb74a0c
commit
ec5845212d
Notes:
sideshowbarker
2024-07-19 05:01:07 +09:00
Author: https://github.com/linusg
Commit: ec5845212d
Pull-request: https://github.com/SerenityOS/serenity/pull/2739
1 changed files with 5 additions and 1 deletions
|
@ -842,8 +842,12 @@ void ClientConnection::set_unresponsive(bool unresponsive)
|
||||||
return;
|
return;
|
||||||
m_unresponsive = unresponsive;
|
m_unresponsive = unresponsive;
|
||||||
for (auto& it : m_windows) {
|
for (auto& it : m_windows) {
|
||||||
it.value->invalidate();
|
auto& window = *it.value;
|
||||||
|
window.invalidate();
|
||||||
|
if (unresponsive)
|
||||||
|
window.set_override_cursor(WindowManager::the().wait_cursor());
|
||||||
}
|
}
|
||||||
|
Compositor::the().invalidate_cursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientConnection::may_have_become_unresponsive()
|
void ClientConnection::may_have_become_unresponsive()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue