diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-11 22:46:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-11 22:46:49 +0200 |
commit | 2ce2c4810a32810f745d0b9adb6a93a0fafdb205 (patch) | |
tree | 36916d6f96bf933d6ce33aa510754704da8094a8 /Libraries/LibGUI/ScrollBar.h | |
parent | 940fbea3a7be56424f553bcca7d6d04205dd77b1 (diff) | |
download | serenity-2ce2c4810a32810f745d0b9adb6a93a0fafdb205.zip |
LibIPC+WindowServer+LibGUI: Detect and highlight unresponsive GUI apps
IPC::ClientConnection now tracks the time since the last time we got
a message from the client and calls a virtual function on itself after
3 seconds: may_have_become_unresponsive().
Subclasses of ClientConnection can then react to this if they like.
We use this mechanism in WindowServer to send out a friendly Ping
message to the client. If he doesn't Pong within 1 second, we mark
the client as "unresponsive" and recompose all of his windows with
a darkened appearance and amended title until he Pongs us.
This is a little on the aggressive side and we should figure out a way
to wake up less often. Perhaps this could only be done to windows the
user is currently interacting with, for example.
Anyways, this is pretty cool! :^)
Diffstat (limited to 'Libraries/LibGUI/ScrollBar.h')
0 files changed, 0 insertions, 0 deletions