XdgToplevelWindow: Consider app responsive only if sent ping was received

> Pass the serial specified in the event back to the compositor by sending
> a "pong" request back with the specified serial.
This commit is contained in:
Kai Uwe Broulik 2023-08-29 19:18:49 +02:00
parent ef23d01502
commit 5572e390c4

View file

@ -1126,8 +1126,9 @@ void XdgToplevelWindow::handlePingDelayed(quint32 serial)
void XdgToplevelWindow::handlePongReceived(quint32 serial)
{
m_pings.remove(serial);
if (m_pings.remove(serial)) {
setUnresponsive(false);
}
}
void XdgToplevelWindow::handleMaximumSizeChanged()