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
Notes: sideshowbarker 2024-07-19 05:01:07 +09:00

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