From owner-dev-commits-ports-all@freebsd.org Sat Aug 14 18:28:40 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8F50C651552; Sat, 14 Aug 2021 18:28:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gn87r3Mzpz4bxV; Sat, 14 Aug 2021 18:28:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5BF442707D; Sat, 14 Aug 2021 18:28:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17EISeug071769; Sat, 14 Aug 2021 18:28:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17EISe7f071768; Sat, 14 Aug 2021 18:28:40 GMT (envelope-from git) Date: Sat, 14 Aug 2021 18:28:40 GMT Message-Id: <202108141828.17EISe7f071768@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jesper Schmitz Mouridsen Subject: git: f4dbdd093aaa - main - net/x2goclient: Fix stored window postion MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jsm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f4dbdd093aaae71ee947e794866c72928906c589 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2021 18:28:40 -0000 The branch main has been updated by jsm: URL: https://cgit.FreeBSD.org/ports/commit/?id=f4dbdd093aaae71ee947e794866c72928906c589 commit f4dbdd093aaae71ee947e794866c72928906c589 Author: Jesper Schmitz Mouridsen AuthorDate: 2021-08-14 18:16:21 +0000 Commit: Jesper Schmitz Mouridsen CommitDate: 2021-08-14 18:16:21 +0000 net/x2goclient: Fix stored window postion pos() includes the window frame, replace by mapToGlobal to avoid out of bounds screen position. Approved by: nc (maintainer) PR: 257778 --- net/x2goclient/Makefile | 2 +- net/x2goclient/files/patch-src_onmainwindow.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/net/x2goclient/Makefile b/net/x2goclient/Makefile index b998e5e508db..d47ffcace3e2 100644 --- a/net/x2goclient/Makefile +++ b/net/x2goclient/Makefile @@ -2,7 +2,7 @@ PORTNAME= x2goclient PORTVERSION= 4.1.2.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= http://code.x2go.org/releases/source/x2goclient/ diff --git a/net/x2goclient/files/patch-src_onmainwindow.cpp b/net/x2goclient/files/patch-src_onmainwindow.cpp new file mode 100644 index 000000000000..7b6cd3b95de0 --- /dev/null +++ b/net/x2goclient/files/patch-src_onmainwindow.cpp @@ -0,0 +1,11 @@ +--- src/onmainwindow.cpp.orig 2021-08-11 18:57:54 UTC ++++ src/onmainwindow.cpp +@@ -1372,7 +1372,7 @@ void ONMainWindow::closeClient() + + st.setting()->setValue ( "mainwindow/size", + QVariant ( size() ) ); +- st.setting()->setValue ( "mainwindow/pos",QVariant ( pos() ) ); ++ st.setting()->setValue ( "mainwindow/pos",QVariant ( mapToGlobal(QPoint(0,0) ) )); + st.setting()->setValue ( "mainwindow/maximized", + QVariant ( isMaximized() ) ); + st.setting()->sync();