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
This commit is contained in:
Caolán McNamara
2015-12-16 10:46:10 +00:00
parent a84fd7d3a2
commit afeddaf7e0

View File

@@ -1135,6 +1135,10 @@ void SystemWindow::DoInitialLayout()
mbIsCalculatingInitialLayoutSize = false;
mbInitialLayoutDone = true;
}
else if (!(GetStyle() & WB_SIZEABLE))
{
SetMinOutputSizePixel(GetSizePixel());
}
}
void SystemWindow::doDeferredInit(WinBits /*nBits*/)