summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/screensaverinhibitor.hxx
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-10-20 12:20:04 +0200
committerAndrzej Hunt <andrzej@ahunt.org>2015-10-20 18:14:40 +0200
commit18817c8cc0cb9d63bbb8c737ab221a9c47b4090a (patch)
tree0b04a2307eb30bc36f32776f125602a1bc76e8e8 /vcl/inc/unx/screensaverinhibitor.hxx
parent189aabbcde1fe544a4e98ab9ee82aea03f1e00f3 (diff)
Move DPMS inhibition to ScreenSaverInhibitor
We should also be doing this irregardless of vcl backend Change-Id: I46ec2c654dfd9ab3c6bcf6da19e7ffa2c05890b9
Diffstat (limited to 'vcl/inc/unx/screensaverinhibitor.hxx')
-rw-r--r--vcl/inc/unx/screensaverinhibitor.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/inc/unx/screensaverinhibitor.hxx b/vcl/inc/unx/screensaverinhibitor.hxx
index 8c9ad54f6044..2486961a5dad 100644
--- a/vcl/inc/unx/screensaverinhibitor.hxx
+++ b/vcl/inc/unx/screensaverinhibitor.hxx
@@ -11,6 +11,9 @@
#define INCLUDED_VCL_INC_UNX_SCREENSAVERINHIBITOR_HXX
#include <prex.h>
+#if !defined(SOLARIS) && !defined(AIX)
+#include <X11/extensions/dpms.h>
+#endif
#include <postx.h>
#include <rtl/ustring.hxx>
@@ -32,12 +35,20 @@ private:
boost::optional<int> mnXScreenSaverTimeout;
+#if !defined(SOLARIS) && !defined(AIX)
+ BOOL mbDPMSWasEnabled;
+ CARD16 mnDPMSStandbyTimeout;
+ CARD16 mnDPMSSuspendTimeout;
+ CARD16 mnDPMSOffTimeout;
+#endif
+
// Note: the Uninhibit call has different spelling in FDO (UnInhibit) vs GSM (Uninhibit)
void inhibitFDO( bool bInhibit, const gchar* appname, const gchar* reason );
void inhibitGSM( bool bInhibit, const gchar* appname, const gchar* reason, const guint xid );
void inhibitXScreenSaver( bool bInhibit, Display* pDisplay );
static void inhibitXAutoLock( bool bInhibit, Display* pDisplay );
+ void inhibitDPMS( bool bInhibit, Display* pDisplay );
};
#endif // INCLUDED_VCL_INC_UNX_SCREENSAVERINHIBITOR_HXX