mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-25 03:53:18 +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);
|
CLock lock(&m_mutex);
|
||||||
assert(m_enabled);
|
assert(m_enabled);
|
||||||
|
|
||||||
|
if (!m_isPrimary && m_entered) {
|
||||||
|
leave();
|
||||||
|
}
|
||||||
|
else if (m_isPrimary && !m_entered) {
|
||||||
|
enter();
|
||||||
|
}
|
||||||
m_screen->disable();
|
m_screen->disable();
|
||||||
if (m_isPrimary) {
|
if (m_isPrimary) {
|
||||||
disablePrimary();
|
disablePrimary();
|
||||||
|
Loading…
Reference in New Issue
Block a user