summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2022-02-07 19:34:51 -0900
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2022-03-14 06:10:49 +0100
commit5247e5e254632e111bbdb798ee1c714c0c9ebde8 (patch)
treea19702cd2ffdefe284abab3fd455b0b53ba8d92f /vcl/source
parent15fb24db540dc29883346d7e8e37d96e4fe8dfb1 (diff)
tdf#140222 make InterimTearableParent docking windows not dockable
and only allow dockable type docking windows to be undocked/docked Change-Id: Ia1b0ccbdd911c24f83baf1c0514954e354c9070b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129650 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com> (cherry picked from commit 99ac14c8ccf89a51de1b3fb9d14789406f2dc95f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131019 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/event.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index aca9fbb803da..4b94b70bc11c 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -111,7 +111,8 @@ bool Window::EventNotify( NotifyEvent& rNEvt )
// check for docking window
// but do nothing if window is docked and locked
ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( this );
- if (pWrapper && ( pWrapper->IsFloatingMode() || !pWrapper->IsLocked() ))
+ if ((GetStyle() & WB_DOCKABLE) &&
+ pWrapper && ( pWrapper->IsFloatingMode() || !pWrapper->IsLocked() ))
{
const bool bDockingSupportCrippled = !StyleSettings::GetDockingFloatsSupported();