ladybird/Libraries/LibIPC
Andreas Kling 2ce2c4810a 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! :^)
2020-06-11 22:46:49 +02:00
..
ClientConnection.h LibIPC+WindowServer+LibGUI: Detect and highlight unresponsive GUI apps 2020-06-11 22:46:49 +02:00
CMakeLists.txt Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
Decoder.cpp LibIPC+Services: Support URL as a native IPC type 2020-06-07 22:55:33 +02:00
Decoder.h LibIPC+LibGfx+IPCCompiler: Drop some unused includes 2020-06-08 13:58:32 +02:00
Dictionary.h LibIPC: Add a simple IPC::Dictionary type (String key -> String value) 2020-05-03 23:01:58 +02:00
Encoder.cpp LibIPC+Services: Support URL as a native IPC type 2020-06-07 22:55:33 +02:00
Encoder.h LibIPC+Services: Support URL as a native IPC type 2020-06-07 22:55:33 +02:00
Endpoint.cpp LibIPC: Remove leading I from filenames 2020-02-06 14:54:09 +01:00
Endpoint.h LibIPC: Remove leading I from filenames 2020-02-06 14:54:09 +01:00
Forward.h LibIPC: Add a simple IPC::Dictionary type (String key -> String value) 2020-05-03 23:01:58 +02:00
Message.cpp LibIPC: Remove leading I from filenames 2020-02-06 14:54:09 +01:00
Message.h LibIPC+IPCCompiler: Remove some unused members from generated messages 2020-02-15 12:10:48 +01:00
ServerConnection.h LibIPC: Use NonnullOwnPtrVector<Message> in IPC::ServerConnection 2020-05-08 21:40:06 +02:00