[X2Go-Commits] [x2goclient] 01/01: Correct negative display coordinates for FS sessions.

git-admin at x2go.org git-admin at x2go.org
Thu Oct 26 13:25:42 CEST 2017


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

x2go pushed a commit to branch master
in repository x2goclient.

commit 34868242affe594d615202104cb354f1838597f2
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Thu Oct 26 13:24:41 2017 +0200

    Correct negative display coordinates for FS sessions.
---
 debian/changelog     | 1 +
 src/onmainwindow.cpp | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f8c4a55..f14491f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -262,6 +262,7 @@ x2goclient (4.1.1.0-0x2go1) UNRELEASED; urgency=medium
       This is important in first case for broker users, where key can be
       generated "on the fly". Maybe it makes sence to add this option in UI
       and command line later.
+    - Correct negative display coordinates for FS sessions.
 
   [ Robert Parts ]
   * New upstream version (4.1.1.0):
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 0eae842..b4b8f28 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -11305,7 +11305,12 @@ void ONMainWindow::slotConfigXinerama()
     {
         QRect intersection;
         if (resumingSession.fullscreen)
+        {
+            x2goDebug<<"correcting display geometry for full screen session";
+            lastDisplayGeometry.setX(0);
+            lastDisplayGeometry.setY(0);
             intersection=root->screenGeometry(i);
+        }
         else
             intersection=root->screenGeometry(i).intersected(lastDisplayGeometry);
         if (!intersection.isNull())

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list