diff options
Diffstat (limited to 'src/server/net')
-rw-r--r-- | src/server/net/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/net/client.cpp b/src/server/net/client.cpp index 7f94983..0dd8783 100644 --- a/src/server/net/client.cpp +++ b/src/server/net/client.cpp @@ -184,10 +184,11 @@ void Client::handleMsg() emit stateChanged(); } else if (id == _VNCCLIENT) { // Client tells us that it started or stopped displaying a remote screen via VNC - const int projectionSource = (int)_fromClient.getFieldString("CLIENTID").toInt(); + const int projectionSource = _fromClient.getFieldString("CLIENTID").toInt(); if (_fromClient.getFieldString("ENABLED").toInt() != 0) { qDebug() << "Client " << _name << " started its VNC client (watching " << projectionSource << ")"; _isActiveVncClient = true; + _projectionSource = projectionSource; emit vncClientStateChange(this); } else { qDebug() << "Client " << _name << " stopped its VNC client (watched " << projectionSource << ")"; |