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:
parent
ef23d01502
commit
5572e390c4
1 changed files with 3 additions and 2 deletions
|
@ -1126,9 +1126,10 @@ void XdgToplevelWindow::handlePingDelayed(quint32 serial)
|
|||
|
||||
void XdgToplevelWindow::handlePongReceived(quint32 serial)
|
||||
{
|
||||
m_pings.remove(serial);
|
||||
if (m_pings.remove(serial)) {
|
||||
setUnresponsive(false);
|
||||
}
|
||||
}
|
||||
|
||||
void XdgToplevelWindow::handleMaximumSizeChanged()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue