diff --git a/0001-Related-rhbz-1281906-set-a-min-size-on-un-resizeable.patch b/0001-Related-rhbz-1281906-set-a-min-size-on-un-resizeable.patch new file mode 100644 index 0000000..d216231 --- /dev/null +++ b/0001-Related-rhbz-1281906-set-a-min-size-on-un-resizeable.patch @@ -0,0 +1,35 @@ +From afeddaf7e0d11ad9b1df0c80bcc3f50caa87e21a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= +Date: Wed, 16 Dec 2015 10:46:10 +0000 +Subject: [PATCH] Related: rhbz#1281906 set a min size on un-resizeable + non-layout dialogs + +a min size equates to a size-request which is reliable under gtk3+wayland +as the dialog contents size. + +a default size equates to the size of the dialog, which includes decorations +under wayland + +Change-Id: I20baf00fb5952ab93628f4dd6891779ce682783c +--- + vcl/source/window/syswin.cxx | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx +index 8589db6..3f2cde1 100644 +--- a/vcl/source/window/syswin.cxx ++++ b/vcl/source/window/syswin.cxx +@@ -1135,6 +1135,10 @@ void SystemWindow::DoInitialLayout() + mbIsCalculatingInitialLayoutSize = false; + mbInitialLayoutDone = true; + } ++ else if (!(GetStyle() & WB_SIZEABLE)) ++ { ++ SetMinOutputSizePixel(GetSizePixel()); ++ } + } + + void SystemWindow::doDeferredInit(WinBits /*nBits*/) +-- +2.5.0 + diff --git a/libreoffice.spec b/libreoffice.spec index 4c5f6a9..8bd237e 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -258,6 +258,7 @@ Patch19: 0001-tdf-96317-Add-API-for-copy-paste-from-to-the-widget.patch Patch20: 0001-tdf-96384-Add-a-new-signal-text-selection-to-lokdocv.patch Patch21: 0001-Resolves-rhbz-1289394-gtk3-implement-tooltips-native.patch Patch22: 0001-don-t-be-creative-and-use-a-simple-lookup-table.patch +Patch23: 0001-Related-rhbz-1281906-set-a-min-size-on-un-resizeable.patch %define instdir %{_libdir} %define baseinstdir %{instdir}/libreoffice