[X2Go-Commits] [x2gokdriveclient] 01/01: force client to send geometry event if the size of the display area is not changed after intiation for server to send initial image.

git-admin at x2go.org git-admin at x2go.org
Thu Jan 23 09:01:26 CET 2020


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

x2go pushed a commit to branch master
in repository x2gokdriveclient.

commit 62c3fafcfc4dc9e92d2395ed8d42a2170cc8a077
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Thu Jan 23 09:01:13 2020 +0100

    force client to send geometry event if the size of the display area is not changed after intiation for server to send initial image.
---
 client.cpp       | 8 +++++++-
 debian/changelog | 2 ++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/client.cpp b/client.cpp
index 0186a9a..ceb5e03 100644
--- a/client.cpp
+++ b/client.cpp
@@ -1067,7 +1067,13 @@ void Client::socketConnected()
     }
 
     connected=true;
-    resize(width, height);
+    if(geometry().width() != width || geometry().height() != height )
+        resize(width, height);
+    else
+    {
+        currentGeometry=geometry();
+        sendGeometryEvent();
+    }
 
     if(fullscreen)
     {
diff --git a/debian/changelog b/debian/changelog
index 0193850..cd71b3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,5 +17,7 @@ x2gokdriveclient (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
   * Add floating tool bar.
     - disable kbd input for toolbar.
     - set default window geometry to 800x600.
+    - force client to send geometry event if the size of the display area is not changed after intiation
+      for server to send initial image.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Tue, 04 Jun 2019 11:10:43 +0200

--
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