summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-10 11:22:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-10 13:59:25 +0100
commit8db6290fbf80c4da993dd1138d6a848b4c9ea8db (patch)
tree5b8a7c94f5451d2cd2642b8956407931bfe9ec76 /sfx2/source
parente190ff7f43db46285ef4208d4ca99d95d0945951 (diff)
explicitly set backing window XFrame as ActiveFrame
instead of relying on implicit toplevel GetFocus to do it, so having the focus in native widgets doesn't matter Change-Id: I6e659a09fad187967e4c14024577e562a57441e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105518 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/backingwindow.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 99c3990de072..9185458f62af 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -421,6 +421,10 @@ void BackingWindow::setOwningFrame( const css::uno::Reference< css::frame::XFram
mxDropTarget->addDropTargetListener(mxDropTargetListener);
mxDropTarget->setActive(true);
}
+
+ css::uno::Reference<XFramesSupplier> xFramesSupplier(mxDesktopDispatchProvider, UNO_QUERY);
+ if (xFramesSupplier)
+ xFramesSupplier->setActiveFrame(mxFrame);
}
IMPL_LINK(BackingWindow, ExtLinkClickHdl, weld::Button&, rButton, void)