ports/net/x2goclient/files/patch-src_onmainwindow.cpp
Jesper Schmitz Mouridsen f4dbdd093a 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
2021-08-14 20:16:21 +02:00

11 lines
564 B
C++

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