[X2Go-Commits] [x2gokdriveclient] 01/01: fix server version checking

git-admin at x2go.org git-admin at x2go.org
Thu Mar 17 17:42:06 CET 2022


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gokdriveclient.

commit efec14cbac52d3fd63cb8a19d4fcda6da94e826a
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Thu Mar 17 10:41:56 2022 -0600

    fix server version checking
---
 debian/changelog | 1 +
 displayarea.cpp  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index aa3438b..ccd1953 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -45,5 +45,6 @@ x2gokdriveclient (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
     - sending KEYRELEASE immediately after KEYPRESS to avoid the "key sticking".
     - replace QByteArray::compare with operator ==.
     - include <xcb/xproto.h> in extwin.h to fix build on leap423 and co
+    - fix server version checking
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Tue, 04 Jun 2019 11:10:43 +0200
diff --git a/displayarea.cpp b/displayarea.cpp
index fd96de4..3c2218a 100644
--- a/displayarea.cpp
+++ b/displayarea.cpp
@@ -410,7 +410,7 @@ void DisplayArea::keyPressEvent(QKeyEvent* event)
     client->sendEvent(evmsg);
 //send key release immediately after key press to avoid key sticking
 //server with version > 6 will do it automatically
-    if(client->getPublicServerVersion()>6)
+    if(client->getPublicServerVersion()<7)
     {
         etype=KEYRELEASE;
         memcpy(evmsg,(char*)&etype,4);

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdriveclient.git


More information about the x2go-commits mailing list