From e19b548a33e138062c3559a69b7ad35d1f298627 Mon Sep 17 00:00:00 2001 From: sr Date: Tue, 5 Feb 2013 19:34:13 +0100 Subject: ... --- src/server/mainwindow/mainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/server/mainwindow/mainwindow.cpp') 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()) -- cgit v1.2.3-55-g7522