forked from Lainports/freebsd-ports
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:
parent
5748cb590d
commit
f4dbdd093a
2 changed files with 12 additions and 1 deletions
|
|
@ -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/
|
||||
|
||||
|
|
|
|||
11
net/x2goclient/files/patch-src_onmainwindow.cpp
Normal file
11
net/x2goclient/files/patch-src_onmainwindow.cpp
Normal 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();
|
||||
Loading…
Add table
Reference in a new issue