summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/CheckBox.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-11 22:46:49 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-11 22:46:49 +0200
commit2ce2c4810a32810f745d0b9adb6a93a0fafdb205 (patch)
tree36916d6f96bf933d6ce33aa510754704da8094a8 /Libraries/LibGUI/CheckBox.cpp
parent940fbea3a7be56424f553bcca7d6d04205dd77b1 (diff)
downloadserenity-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/CheckBox.cpp')
0 files changed, 0 insertions, 0 deletions