1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 17:05:10 +00:00

WindowServer: Apply the "wait" cursor to unresponsive windows

This commit is contained in:
Linus Groh 2020-07-07 20:46:05 +01:00 committed by Andreas Kling
parent e99cb74a0c
commit ec5845212d

View file

@ -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()