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.
This commit is contained in:
parent
3352317ca8
commit
fb8eaba83f
11 changed files with 272 additions and 6 deletions
|
|
@ -473,6 +473,12 @@ void CHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, timespe
|
|||
if (ignorePosition) {
|
||||
renderdata.pos.x = pMonitor->vecPosition.x;
|
||||
renderdata.pos.y = pMonitor->vecPosition.y;
|
||||
} else {
|
||||
const bool ANR = pWindow->isNotResponding();
|
||||
if (ANR && pWindow->m_notRespondingTint->goal() != 0.2F)
|
||||
*pWindow->m_notRespondingTint = 0.2F;
|
||||
else if (!ANR && pWindow->m_notRespondingTint->goal() != 0.F)
|
||||
*pWindow->m_notRespondingTint = 0.F;
|
||||
}
|
||||
|
||||
if (standalone)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue