summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
authorsr2013-02-05 19:34:13 +0100
committersr2013-02-05 19:34:13 +0100
commite19b548a33e138062c3559a69b7ad35d1f298627 (patch)
treeff3c21a9e9edf15448d3e43c72f127de8ae06dd7 /src/server/mainwindow/mainwindow.cpp
parent... (diff)
downloadpvs2-e19b548a33e138062c3559a69b7ad35d1f298627.tar.gz
pvs2-e19b548a33e138062c3559a69b7ad35d1f298627.tar.xz
pvs2-e19b548a33e138062c3559a69b7ad35d1f298627.zip
...
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r--src/server/mainwindow/mainwindow.cpp8
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())