summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/vnc/vncwindow.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/vnc/vncwindow.cpp b/src/client/vnc/vncwindow.cpp
index 4976bbd..f5a9337 100644
--- a/src/client/vnc/vncwindow.cpp
+++ b/src/client/vnc/vncwindow.cpp
@@ -140,19 +140,21 @@ void VncWindow::open(const QString& host, int port, const QString& passwd, bool
_multiScreen = ns > 1;
qDebug() << "Spawning at" << best;
size = best.size();
+ show();
setGeometry(best);
- move(best.topLeft());
- //showFullScreen();
- activateWindow();
raise();
+ if (!_multiScreen) {
+ activateWindow();
+ }
+ move(best.topLeft());
} else {
+ setWindowFlags(Qt::Tool | Qt::WindowMaximizeButtonHint);
size = QSize(800, 600);
resize(size);
showNormal();
}
this->repaint();
- this->show();
_vncWorker->setTargetBuffer(_image);
_tcpTimeoutTimer = startTimer(10000);