diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-08-13 13:38:04 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-08-14 09:04:37 +0200 |
commit | f6c78ee996e87c8f7f0d162e06bc2ce6c7633481 (patch) | |
tree | d54c50421cf49e28dcaf79bbe86c5517647d3868 | |
parent | 192d9a2dc41d83c11ec7d5e3efda60a59c89f6ff (diff) |
tdf#126848: sc pivot table popup: avoid flicker
Follow-up of 4dadbff74eff5f8ad00df99c659f8a2b914e09a1
Regression from commit a4cb27f61376d8f2d8faed0022c291af68d437bd
Change-Id: I4d0cd2ad2d7d239307c48c9bc8c1f1ced6597f47
Reviewed-on: https://gerrit.libreoffice.org/77408
Tested-by: Jenkins
Reviewed-by: Xisco FaulĂ <xiscofauli@libreoffice.org>
(cherry picked from commit 1352b1fcfa1668081c3197a12d5362286f8f9710)
Reviewed-on: https://gerrit.libreoffice.org/77427
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | sc/source/ui/view/gridwin2.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx index aef8160eedc7..18477202d8af 100644 --- a/sc/source/ui/view/gridwin2.cxx +++ b/sc/source/ui/view/gridwin2.cxx @@ -469,6 +469,12 @@ void ScGridWindow::DPLaunchFieldPopupMenu(const Point& rScrPos, const Size& rScr mpDPFieldPopup.disposeAndClear(); mpDPFieldPopup.reset(VclPtr<ScCheckListMenuWindow>::Create(this, pViewData->GetDocument())); + + // 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. + mpDPFieldPopup->RequestDoubleBuffering(true); + mpDPFieldPopup->setName("DataPilot field member popup"); mpDPFieldPopup->setExtendedData(std::move(pDPData)); mpDPFieldPopup->setOKAction(new DPFieldPopupOKAction(this)); |