summaryrefslogtreecommitdiff
path: root/src/desktop/Window.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-02-18 15:10:40 +0000
committerVaxry <vaxry@vaxry.net>2025-02-18 15:13:56 +0000
commitfb8eaba83f2d114fb346730e789a559ccc366887 (patch)
treed4fe951c24311577ccd9c950f17eb92527b4bd5a /src/desktop/Window.hpp
parent3352317ca827dfb2dfd222274dfaf5941c78c086 (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/desktop/Window.hpp')
-rw-r--r--src/desktop/Window.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp
index bc32bab4..50b61050 100644
--- a/src/desktop/Window.hpp
+++ b/src/desktop/Window.hpp
@@ -388,6 +388,9 @@ class CWindow {
// window tags
CTagKeeper m_tags;
+ // ANR
+ PHLANIMVAR<float> m_notRespondingTint;
+
// For the list lookup
bool operator==(const CWindow& rhs) const {
return m_pXDGSurface == rhs.m_pXDGSurface && m_pXWaylandSurface == rhs.m_pXWaylandSurface && m_vPosition == rhs.m_vPosition && m_vSize == rhs.m_vSize &&
@@ -480,6 +483,7 @@ class CWindow {
NContentType::eContentType getContentType();
void setContentType(NContentType::eContentType contentType);
void deactivateGroupMembers();
+ bool isNotResponding();
CBox getWindowMainSurfaceBox() const {
return {m_vRealPosition->value().x, m_vRealPosition->value().y, m_vRealSize->value().x, m_vRealSize->value().y};