diff options
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index 6e312e6..ceb445a 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -406,8 +406,12 @@ void MainWindow::prepareForProjection(Client * const from, Client * const to) // One to one is desired, figure out what to do with current client - if (to->isActiveVncClient()) - to->stopVncClient(); + if (to->isActiveVncServer()) + { + if (to->currentProjectionSource() == from->id()) + return; // Nothing to do + to->stopVncServer(); + } to->setDesiredProjectionSource(from->id()); if (from->isActiveVncServer()) |