svx/source/sidebar/line/LineWidthPopup.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 4396bfa7c05b8578ed4ea54a6db85afc84e0a683 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Sep 27 09:04:56 2019 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Oct 10 10:47:27 2019 +0200 tdf#127676: avoid flickering in line width popup Change-Id: Ie69a5b4d33d12316e6fd7e443b92851cffc95b8c Reviewed-on: https://gerrit.libreoffice.org/79667 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org> (cherry picked from commit 25cc6dcef22e51c1bfa01e8fbed5046439bb1428) Reviewed-on: https://gerrit.libreoffice.org/79748 Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/svx/source/sidebar/line/LineWidthPopup.cxx b/svx/source/sidebar/line/LineWidthPopup.cxx index abcefb0fe231..813160616611 100644 --- a/svx/source/sidebar/line/LineWidthPopup.cxx +++ b/svx/source/sidebar/line/LineWidthPopup.cxx @@ -47,6 +47,11 @@ LineWidthPopup::LineWidthPopup(LinePropertyPanelBase& rParent) m_xVSWidth = VclPtr<LineWidthValueSet>::Create(m_xBox); + // 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. + m_xMFWidth->RequestDoubleBuffering(true); + m_xVSWidth->SetStyle(m_xVSWidth->GetStyle()| WB_3DLOOK | WB_NO_DIRECTSELECT); maStrUnits[0] = "0.5"; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits