diff options
author | Simon Rettberg | 2018-07-20 15:26:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-07-20 15:26:22 +0200 |
commit | 03fc8a994b1ff3c2e35efe07a187b956b447557d (patch) | |
tree | c4457d0b73e2adf18c04baa135a9b648f767bdcc /src | |
parent | [server] Fix: Checking for Ok on a Yes/No question ... (diff) | |
download | pvs2-03fc8a994b1ff3c2e35efe07a187b956b447557d.tar.gz pvs2-03fc8a994b1ff3c2e35efe07a187b956b447557d.tar.xz pvs2-03fc8a994b1ff3c2e35efe07a187b956b447557d.zip |
[client] Don't activateWindow VNC viewer on open in multiscreen mode
Diffstat (limited to 'src')
-rw-r--r-- | src/client/vnc/vncwindow.cpp | 10 |
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); |