summaryrefslogtreecommitdiff
path: root/include/vcl/syswin.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-27 12:17:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-27 15:03:53 +0100
commit5d388b94735e34ba445d65e1d5030a646aad7dbe (patch)
tree8a2a5683a1718b0039d22edcc38dfcce3c82e206 /include/vcl/syswin.hxx
parent4bd1cf9c1aece1bb405c157e6e6b2444517a27ae (diff)
Related: tdf#146648 let SetWindowState size trump the initial layout pref size
so a size can be restored from config and overrule the initial layout size which is calculated on first show. for existing cases, this changes behaviour if a dialog is shown, hidden, layout changed and then reshown and the new layout is smaller than the old layout. But that should align the behaviour of vcl layout-enabled widgets with gtk ones. Change-Id: I526f16dba91ccfd6d52c63a17e5dc51bf79750a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129037 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/syswin.hxx')
-rw-r--r--include/vcl/syswin.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx
index 0c35073aec09..71661908fd86 100644
--- a/include/vcl/syswin.hxx
+++ b/include/vcl/syswin.hxx
@@ -103,6 +103,7 @@ private:
bool mbHideBtn;
bool mbSysChild;
bool mbIsCalculatingInitialLayoutSize;
+ bool mbInitialLayoutSizeCalculated;
bool mbPaintComplete;
MenuBarMode mnMenuBarMode;
sal_uInt16 mnIcon;