diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-02-18 15:10:40 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-02-18 15:13:56 +0000 |
| commit | fb8eaba83f2d114fb346730e789a559ccc366887 (patch) | |
| tree | d4fe951c24311577ccd9c950f17eb92527b4bd5a /src/protocols/XDGShell.hpp | |
| parent | 3352317ca827dfb2dfd222274dfaf5941c78c086 (diff) | |
core: add an ANR dialog
for xdg-shell, we can ping the wm_base, and thus render an ANR dialog if an app dies
for XWayland, there probably is a similar method, but I don't know about it and don't care.
Diffstat (limited to 'src/protocols/XDGShell.hpp')
| -rw-r--r-- | src/protocols/XDGShell.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocols/XDGShell.hpp b/src/protocols/XDGShell.hpp index 4c2b8100..b46e0236 100644 --- a/src/protocols/XDGShell.hpp +++ b/src/protocols/XDGShell.hpp @@ -241,12 +241,17 @@ class CXDGWMBase { bool good(); wl_client* client(); + void ping(); std::vector<WP<CXDGPositionerResource>> positioners; std::vector<WP<CXDGSurfaceResource>> surfaces; WP<CXDGWMBase> self; + struct { + CSignal pong; + } events; + private: SP<CXdgWmBase> resource; wl_client* pClient = nullptr; |
