mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 21:51:55 -07:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user