From 5525368c6640f54cc8080ab5e9f6621a3d3874d8 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Fri, 14 Jun 2019 02:08:22 +0000 Subject: KDE5 move screensafer inhibiting code into Qt5 There will presumably be more X11 specific code later to implement some "fix" for tdf#119202. Moving the screensafer inhibitor is rather uncontroversial in comparion, so start with it and use it to carry the matching configure.ac changes. A little "nightmare" are all the clashing X11 / Qt type undefs, but I couldn't find a better solution while the inhibitor continues to include the X11 headers in it's header. Reviewed-on: https://gerrit.libreoffice.org/74015 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski (cherry picked from commit b5323c72ff7e5bcde34089e49fe98e589dcc5acb) Change-Id: I55c89c76726d30a890178488484e954207267e89 Reviewed-on: https://gerrit.libreoffice.org/74081 Tested-by: Jenkins Reviewed-by: Michael Weghorn (cherry picked from commit 9c37c306158267d942a0a1debc3845db1c923ceb) Reviewed-on: https://gerrit.libreoffice.org/74192 (cherry picked from commit 3ff31faa48c12c33c9c3fafae8fc35201fa5d614) --- vcl/unx/kde5/KDE5SalFrame.cxx | 17 ----------------- vcl/unx/kde5/KDE5SalFrame.hxx | 5 ----- 2 files changed, 22 deletions(-) (limited to 'vcl/unx') diff --git a/vcl/unx/kde5/KDE5SalFrame.cxx b/vcl/unx/kde5/KDE5SalFrame.cxx index c195b641e119..728ca1461537 100644 --- a/vcl/unx/kde5/KDE5SalFrame.cxx +++ b/vcl/unx/kde5/KDE5SalFrame.cxx @@ -20,11 +20,9 @@ #include #include #include -#include #include #include #include -#include #include #include @@ -222,19 +220,4 @@ void KDE5SalFrame::ReleaseGraphics(SalGraphics* pSalGraph) m_bGraphicsInUse = false; } -void KDE5SalFrame::StartPresentation(bool bStart) -{ - // disable screensaver for running preso - boost::optional aWindow; - boost::optional aDisplay; - if (QX11Info::isPlatformX11()) - { - aWindow = QX11Info::appRootWindow(); - aDisplay = QX11Info::display(); - } - - m_ScreenSaverInhibitor.inhibit(bStart, "presentation", QX11Info::isPlatformX11(), aWindow, - aDisplay); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/unx/kde5/KDE5SalFrame.hxx b/vcl/unx/kde5/KDE5SalFrame.hxx index 441039829846..4b609bdf85a2 100644 --- a/vcl/unx/kde5/KDE5SalFrame.hxx +++ b/vcl/unx/kde5/KDE5SalFrame.hxx @@ -21,10 +21,7 @@ #include -#undef Status - #include -#include #include "KDE5SalGraphics.hxx" @@ -35,7 +32,6 @@ class KDE5SalFrame : public Qt5Frame { private: std::unique_ptr m_pKDE5Graphics; - ScreenSaverInhibitor m_ScreenSaverInhibitor; bool m_bGraphicsInUse; public: @@ -45,7 +41,6 @@ public: virtual void ReleaseGraphics(SalGraphics* pGraphics) override; virtual void UpdateSettings(AllSettings& rSettings) override; - virtual void StartPresentation(bool bStart) override; virtual LanguageType GetInputLanguage() override { return LANGUAGE_SYSTEM; } virtual SalPointerState GetPointerState() override { return SalPointerState(); } virtual KeyIndicatorState GetIndicatorState() override { return KeyIndicatorState(); } -- cgit