Kaydet (Commit) c4d2710c authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Don't allow tearoff under Wayland

as floating toolbars aren't movable there.

Change-Id: I543344946f02d5a336ff738b4d6d9f9b21c595e9
Reviewed-on: https://gerrit.libreoffice.org/48096Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
üst c5ecb299
......@@ -799,7 +799,8 @@ void ImplDockingWindowWrapper::StartPopupMode( ToolBox *pParentToolBox, FloatWin
ImplPreparePopupMode();
// don't allow tearoff, if globally disabled
if( GetWindow()->GetType() == WindowType::TOOLBOX && ToolBox::AlwaysLocked() )
if( !StyleSettings::GetDockingFloatsSupported() ||
( GetWindow()->GetType() == WindowType::TOOLBOX && ToolBox::AlwaysLocked() ) )
nFlags &= ~FloatWinPopupFlags::AllowTearOff;
// if the subtoolbar was opened via keyboard make sure that key events
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment