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

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