mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03: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: https://github.com/SerenityOS/serenity/commit/ec5845212d5 Pull-request: https://github.com/SerenityOS/serenity/pull/2739
@ -842,8 +842,12 @@ void ClientConnection::set_unresponsive(bool unresponsive)
|
||||
return;
|
||||
m_unresponsive = unresponsive;
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user