summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-09-02 11:38:31 -0400
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-25 13:45:00 +0200
commitbf7adf4c24209b48198d06a66e7fadba66637763 (patch)
tree646f7726e99a1bb9696fdbfcb05359d4be7baec6
parentb0cc179a728603d62fd62595f039d2d856f8c9c3 (diff)
sidebar: support closing the sidebar through the X button
Change-Id: I078c27d22bbee3d02ad4a3fb97ba01a394f171e1 Reviewed-on: https://gerrit.libreoffice.org/73503 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index e636f4cb30df..8f09d3f38af6 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -48,6 +48,7 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/namedvaluecollection.hxx>
+#include <comphelper/lok.hxx>
#include <sal/log.hxx>
#include <officecfg/Office/UI/Sidebar.hxx>
@@ -1094,6 +1095,11 @@ IMPL_LINK(SidebarController, OnMenuItemSelected, Menu*, pMenu, bool)
void SidebarController::RequestCloseDeck()
{
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ mpCurrentDeck->GetLOKNotifier()->notifyWindow(mpCurrentDeck->GetLOKWindowId(), "close");
+ }
+
mbIsDeckRequestedOpen = false;
UpdateDeckOpenState();