summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x/ecore_x_dpms.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_x/ecore_x_dpms.c')
-rw-r--r--src/lib/ecore_x/ecore_x_dpms.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_x/ecore_x_dpms.c b/src/lib/ecore_x/ecore_x_dpms.c
index a44825c4c7..ad946d45c9 100644
--- a/src/lib/ecore_x/ecore_x_dpms.c
+++ b/src/lib/ecore_x/ecore_x_dpms.c
@@ -283,3 +283,19 @@ ecore_x_dpms_timeout_off_set(unsigned int new_timeout)
283 DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout); 283 DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout);
284#endif /* ifdef ECORE_XDPMS */ 284#endif /* ifdef ECORE_XDPMS */
285} 285}
286
287/**
288 * Forces DPMS on or off
289 * @param on If DPMS is to be forced on (EINA_TRUE) or forced off
290 * @ingroup Ecore_X_DPMS_Group
291 */
292EAPI void
293ecore_x_dpms_force(Eina_Bool on)
294{
295#ifdef ECORE_XDPMS
296 LOGFN(__FILE__, __LINE__, __FUNCTION__);
297 EINA_SAFETY_ON_NULL_RETURN(_ecore_x_disp);
298 if (on) DPMSForceLevel(_ecore_x_disp, DPMSModeOn);
299 else DPMSForceLevel(_ecore_x_disp, DPMSModeOff);
300#endif /* ifdef ECORE_XDPMS */
301}