1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

WindowServer: Restore cursor when marking window as responsive

This commit is contained in:
Sahan Fernando 2021-02-20 03:27:14 +11:00 committed by Andreas Kling
parent fdf03852c9
commit e920c74cae
2 changed files with 9 additions and 3 deletions

View file

@ -954,8 +954,11 @@ void ClientConnection::set_unresponsive(bool unresponsive)
for (auto& it : m_windows) {
auto& window = *it.value;
window.invalidate();
if (unresponsive)
window.set_cursor(WindowManager::the().wait_cursor());
if (unresponsive) {
window.set_cursor_override(WindowManager::the().wait_cursor());
} else {
window.remove_cursor_override();
}
}
Compositor::the().invalidate_cursor();
}