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
This commit is contained in:
Maxim Monastirsky
2017-09-27 00:22:52 +03:00
parent 8789bee5d2
commit 0582d54d89

View File

@@ -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();