git: f4dbdd093aaa - main - net/x2goclient: Fix stored window postion
Jesper Schmitz Mouridsen
jsm at FreeBSD.org
Sat Aug 14 18:28:40 UTC 2021
The branch main has been updated by jsm:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f4dbdd093aaae71ee947e794866c72928906c589
commit f4dbdd093aaae71ee947e794866c72928906c589
Author: Jesper Schmitz Mouridsen <jsm at FreeBSD.org>
AuthorDate: 2021-08-14 18:16:21 +0000
Commit: Jesper Schmitz Mouridsen <jsm at FreeBSD.org>
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();
More information about the dev-commits-ports-all
mailing list