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
This commit is contained in:
Jesper Schmitz Mouridsen 2021-08-14 20:16:21 +02:00
parent 5748cb590d
commit f4dbdd093a
2 changed files with 12 additions and 1 deletions

View file

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

View file

@ -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();