Blame SOURCES/0001-Related-rhbz-1281906-set-a-min-size-on-un-resizeable.patch

f325b2
From afeddaf7e0d11ad9b1df0c80bcc3f50caa87e21a Mon Sep 17 00:00:00 2001
f325b2
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
f325b2
Date: Wed, 16 Dec 2015 10:46:10 +0000
f325b2
Subject: [PATCH] Related: rhbz#1281906 set a min size on un-resizeable
f325b2
 non-layout dialogs
f325b2
f325b2
a min size equates to a size-request which is reliable under gtk3+wayland
f325b2
as the dialog contents size.
f325b2
f325b2
a default size equates to the size of the dialog, which includes decorations
f325b2
under wayland
f325b2
f325b2
Change-Id: I20baf00fb5952ab93628f4dd6891779ce682783c
f325b2
---
f325b2
 vcl/source/window/syswin.cxx | 4 ++++
f325b2
 1 file changed, 4 insertions(+)
f325b2
f325b2
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
f325b2
index 8589db6..3f2cde1 100644
f325b2
--- a/vcl/source/window/syswin.cxx
f325b2
+++ b/vcl/source/window/syswin.cxx
f325b2
@@ -1135,6 +1135,10 @@ void SystemWindow::DoInitialLayout()
f325b2
         mbIsCalculatingInitialLayoutSize = false;
f325b2
         mbInitialLayoutDone = true;
f325b2
     }
f325b2
+    else if (!(GetStyle() & WB_SIZEABLE))
f325b2
+    {
f325b2
+        SetMinOutputSizePixel(GetSizePixel());
f325b2
+    }
f325b2
 }
f325b2
 
f325b2
 void SystemWindow::doDeferredInit(WinBits /*nBits*/)
f325b2
-- 
f325b2
2.5.0
f325b2