diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-09-27 17:34:38 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-10-01 01:20:15 +0200 |
commit | cb9970400d0bbd73e508f25a67e1ad2c7dd28eb6 (patch) | |
tree | 9f71bb36d6eb300e560170e3bd014f946a7a18a5 /sw/source/uibase/sidebar/PageOrientationPopup.cxx | |
parent | 8b053a3c88c2b3e203856dbd9dabca6c935b0bde (diff) |
Wayland: Make various popups work in the overflow toolbar
Were failing to show, with this warning:
Gdk-WARNING **: Tried to map a popup with a non-top most parent
Change-Id: Ib68b5fc9b3edb3d25a23b66397c13833a4d080ac
Reviewed-on: https://gerrit.libreoffice.org/42936
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw/source/uibase/sidebar/PageOrientationPopup.cxx')
-rw-r--r-- | sw/source/uibase/sidebar/PageOrientationPopup.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/sidebar/PageOrientationPopup.cxx b/sw/source/uibase/sidebar/PageOrientationPopup.cxx index ab9f5fbd523d..9b4f3fcb0f22 100644 --- a/sw/source/uibase/sidebar/PageOrientationPopup.cxx +++ b/sw/source/uibase/sidebar/PageOrientationPopup.cxx @@ -35,7 +35,7 @@ PageOrientationPopup::~PageOrientationPopup() VclPtr<SfxPopupWindow> PageOrientationPopup::CreatePopupWindow() { - VclPtr<sw::sidebar::PageOrientationControl> pControl = VclPtr<sw::sidebar::PageOrientationControl>::Create(GetSlotId()); + VclPtr<sw::sidebar::PageOrientationControl> pControl = VclPtr<sw::sidebar::PageOrientationControl>::Create(GetSlotId(), &GetToolBox()); pControl->StartPopupMode(&GetToolBox(), FloatWinPopupFlags::GrabFocus); SetPopupWindow(pControl); |