mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-24 19:42:24 +03:00
Now leaving client screen or entering server screen if necessary
when disabling the screen.
This commit is contained in:
parent
a237cbacdb
commit
8395f69899
@ -93,6 +93,12 @@ CScreen::disable()
|
||||
CLock lock(&m_mutex);
|
||||
assert(m_enabled);
|
||||
|
||||
if (!m_isPrimary && m_entered) {
|
||||
leave();
|
||||
}
|
||||
else if (m_isPrimary && !m_entered) {
|
||||
enter();
|
||||
}
|
||||
m_screen->disable();
|
||||
if (m_isPrimary) {
|
||||
disablePrimary();
|
||||
|
Loading…
Reference in New Issue
Block a user