From 0582d54d89bc6b3f36eaac0768a97e82303a97ca Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Wed, 27 Sep 2017 00:22:52 +0300 Subject: [PATCH] WB_MOVEABLE should not trigger tearoff mode As any .ui based docking window gets it unconditionally, see extractDeferredBits function in builder.cxx. Change-Id: I339a72989ad09d8ea7106f5690fc950ee7ba35da --- svtools/source/uno/popupwindowcontroller.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx index 166a58d262ed..51f2b6e10f42 100644 --- a/svtools/source/uno/popupwindowcontroller.cxx +++ b/svtools/source/uno/popupwindowcontroller.cxx @@ -208,7 +208,7 @@ Reference< awt::XWindow > SAL_CALL PopupWindowController::createPopupWindow() else nWinBits = pWin->GetStyle(); - if ( nWinBits & ( WB_MOVEABLE | WB_SIZEABLE | WB_CLOSEABLE ) ) + if ( nWinBits & ( WB_SIZEABLE | WB_CLOSEABLE ) ) eFloatFlags |= FloatWinPopupFlags::AllowTearOff; pWin->EnableDocking();