sw/source/uibase/sidebar/PageSizeControl.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit ad02da65c066b1860ebe705980ee86403bdedf00 Author: Xisco Fauli <[email protected]> AuthorDate: Fri Sep 27 19:45:46 2019 +0200 Commit: Miklos Vajna <[email protected]> CommitDate: Thu Oct 10 10:46:30 2019 +0200 tdf#126321: avoid flickering in page size popup In a Tabbed notebookbar, Layout - Page Size Change-Id: I74ab54e96486de960d1ccc7bcb3c2679e25a6e9e Reviewed-on: https://gerrit.libreoffice.org/79753 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Miklos Vajna <[email protected]> diff --git a/sw/source/uibase/sidebar/PageSizeControl.cxx b/sw/source/uibase/sidebar/PageSizeControl.cxx index c5c7a9bbda73..c1c0d876d325 100644 --- a/sw/source/uibase/sidebar/PageSizeControl.cxx +++ b/sw/source/uibase/sidebar/PageSizeControl.cxx @@ -76,6 +76,12 @@ PageSizeControl::PageSizeControl( sal_uInt16 nId, vcl::Window* pParent ) get(maMoreButton, "moreoptions"); get(maContainer, "container"); mpSizeValueSet = VclPtr<svx::sidebar::ValueSetWithTextControl>::Create( maContainer.get(), WB_BORDER ); + + // Avoid flicker when hovering over the menu items. + if (!IsNativeControlSupported(ControlType::Pushbutton, ControlPart::Focus)) + // If NWF renders the focus rects itself, that breaks double-buffering. + mpSizeValueSet->RequestDoubleBuffering(true); + maWidthHeightField = VclPtr<MetricField>::Create( maContainer.get(), 0 ); maWidthHeightField->Hide(); maWidthHeightField->SetUnit(FieldUnit::CM); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
