diff options
author | Linus Groh <mail@linusgroh.de> | 2020-07-07 20:46:05 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-07 23:11:39 +0200 |
commit | ec5845212d506c9651fe9c83a2d4426a852c1cc7 (patch) | |
tree | 1be81b96b5d60c111a7ab2636bf7ab916d1cf424 /Services/WindowServer | |
parent | e99cb74a0cc74c5ac761627fb9b1c8ae2bfcabe8 (diff) | |
download | serenity-ec5845212d506c9651fe9c83a2d4426a852c1cc7.zip |
WindowServer: Apply the "wait" cursor to unresponsive windows
Diffstat (limited to 'Services/WindowServer')
-rw-r--r-- | Services/WindowServer/ClientConnection.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Services/WindowServer/ClientConnection.cpp b/Services/WindowServer/ClientConnection.cpp index 2eb3b5aaa2..c1da4bc0cb 100644 --- a/Services/WindowServer/ClientConnection.cpp +++ b/Services/WindowServer/ClientConnection.cpp @@ -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() |