vcl/unx/gtk4/convert3to4.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 66e9b77ed296bb6b0cdae22685a11525a06dcf08 Author: Caolán McNamara <[email protected]> AuthorDate: Fri Sep 10 10:19:39 2021 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Sep 10 13:27:28 2021 +0200 gtk4: default GtkViewport to can-focus Change-Id: If4c730cef1782c20f6f8519e77ff336c0e9e692c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121870 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/vcl/unx/gtk4/convert3to4.cxx b/vcl/unx/gtk4/convert3to4.cxx index 837a96035e2b..b1e1752d8ec4 100644 --- a/vcl/unx/gtk4/convert3to4.cxx +++ b/vcl/unx/gtk4/convert3to4.cxx @@ -418,7 +418,8 @@ ConvertResult Convert3To4(const css::uno::Reference<css::xml::dom::XNode>& xNode if (!bChildCanFocus) { OUString sParentClass = GetParentObjectType(xChild); - if (sParentClass == "GtkBox" || sParentClass == "GtkGrid") + if (sParentClass == "GtkBox" || sParentClass == "GtkGrid" + || sParentClass == "GtkViewport") { // e.g. for the case of notebooks without children yet, just remove the can't focus property // from Boxes and Grids
