Merge pull request #252 from vorph1/screen-change-script

Fire screen switch event on client disconnect
This commit is contained in:
Adrian Lucrèce Céleste 2019-03-22 08:40:30 -04:00 committed by GitHub
commit acca0d7f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -2262,6 +2262,10 @@ Server::forceLeaveClient(BaseClientProxy* client)
m_primaryClient->enter(m_x, m_y, m_seqNum, m_primaryClient->enter(m_x, m_y, m_seqNum,
m_primaryClient->getToggleMask(), false); m_primaryClient->getToggleMask(), false);
} }
Server::SwitchToScreenInfo* info =
Server::SwitchToScreenInfo::alloc(m_active->getName());
m_events->addEvent(Event(m_events->forServer().screenSwitched(), this, info));
} }
// if this screen had the cursor when the screen saver activated // if this screen had the cursor when the screen saver activated