diff options
author | sr | 2013-02-05 19:34:13 +0100 |
---|---|---|
committer | sr | 2013-02-05 19:34:13 +0100 |
commit | e19b548a33e138062c3559a69b7ad35d1f298627 (patch) | |
tree | ff3c21a9e9edf15448d3e43c72f127de8ae06dd7 /src/server/mainwindow | |
parent | ... (diff) | |
download | pvs2-e19b548a33e138062c3559a69b7ad35d1f298627.tar.gz pvs2-e19b548a33e138062c3559a69b7ad35d1f298627.tar.xz pvs2-e19b548a33e138062c3559a69b7ad35d1f298627.zip |
...
Diffstat (limited to 'src/server/mainwindow')
-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()) |