diff options
author | Henry Castro <hcastro@collabora.com> | 2021-06-29 20:15:36 -0400 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-10-07 11:49:08 +0200 |
commit | d7ef45f32caa8c91e662fda5890ffec24875b07e (patch) | |
tree | c1f36db18c68144e12666533895382c43a5b38eb /vcl | |
parent | de1e60f01f5806cc55088846aaaf3429aea754fb (diff) |
lok: fix sending mouse pointer
The ScGridWindow is a document window, but the Parent
is not the notifier, fix it to send mouse pointer when
action is drag & drop.
Change-Id: I5071dce2566331ce0268a96e023ffd61a1f09e56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118870
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/mouse.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx index 9e2cd5045392..717713a68952 100644 --- a/vcl/source/window/mouse.cxx +++ b/vcl/source/window/mouse.cxx @@ -510,8 +510,10 @@ void Window::SetPointer( PointerStyle nPointer ) // issue mouse pointer events only for document windows // Doc windows' immediate parent SfxFrameViewWindow_Impl is the one with // parent notifier set during initialization - if (GetParent()->ImplGetWindowImpl()->mbLOKParentNotifier && - GetParent()->ImplGetWindowImpl()->mnLOKWindowId == 0) + if ((ImplGetFrameData()->mbDragging && + ImplGetFrameData()->mpMouseDownWin == this) || + (GetParent()->ImplGetWindowImpl()->mbLOKParentNotifier && + GetParent()->ImplGetWindowImpl()->mnLOKWindowId == 0)) { pWin->GetLOKNotifier()->libreOfficeKitViewCallback(LOK_CALLBACK_MOUSE_POINTER, aPointerString.getStr()); } |