on xenial help sign in
Do not store window with zero size

https://github.com/ubports/ubuntu-touch/issues/460

commite04846eba733eb945b0173a2e7be27aa631b0dce authordoniks <p.putz@yahoo.de> dateThu 7 Jun 2018, 17:49 (8 years ago) parent5aa12fa
1 file changed+4−1
qml/Stage/WindowResizeArea.qml+4−1
qml/Stage/WindowResizeArea.qml+4−1
@@ -101,7 +101,10 @@ MouseArea {
101101 state = WindowStateStorage.WindowStateNormal;
102102 }
103103 windowStateStorage.saveState(root.windowId, state & ~WindowStateStorage.WindowStateMinimized); // clear the minimized bit when saving
104− windowStateStorage.saveGeometry(root.windowId, Qt.rect(priv.normalX, priv.normalY, priv.normalWidth, priv.normalHeight));
104+ // do not store window sizes if they are zero. this happens in staged mode
105+ if ( priv.normalWidth && priv.normalHeight ) {
106+ windowStateStorage.saveGeometry(root.windowId, Qt.rect(priv.normalX, priv.normalY, priv.normalWidth, priv.normalHeight));
107+ }
105108 }
106109
107110 QtObject {