diff options
Diffstat (limited to 'src/lib/ecore_x')
-rw-r--r-- | src/lib/ecore_x/Ecore_X.h | 1 | ||||
-rw-r--r-- | src/lib/ecore_x/ecore_x_dpms.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/ecore_x/Ecore_X.h b/src/lib/ecore_x/Ecore_X.h index 8c0c7d3ef1..03e3dec743 100644 --- a/src/lib/ecore_x/Ecore_X.h +++ b/src/lib/ecore_x/Ecore_X.h | |||
@@ -2526,6 +2526,7 @@ EAPI unsigned int ecore_x_dpms_timeout_off_get(void); | |||
2526 | EAPI void ecore_x_dpms_timeout_standby_set(unsigned int new_timeout); | 2526 | EAPI void ecore_x_dpms_timeout_standby_set(unsigned int new_timeout); |
2527 | EAPI void ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout); | 2527 | EAPI void ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout); |
2528 | EAPI void ecore_x_dpms_timeout_off_set(unsigned int new_timeout); | 2528 | EAPI void ecore_x_dpms_timeout_off_set(unsigned int new_timeout); |
2529 | EAPI void ecore_x_dpms_force(Eina_Bool on); | ||
2529 | 2530 | ||
2530 | EAPI Eina_Bool ecore_x_test_fake_key_down(const char *key); | 2531 | EAPI Eina_Bool ecore_x_test_fake_key_down(const char *key); |
2531 | EAPI Eina_Bool ecore_x_test_fake_key_up(const char *key); | 2532 | EAPI Eina_Bool ecore_x_test_fake_key_up(const char *key); |
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 | */ | ||
292 | EAPI void | ||
293 | ecore_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 | } | ||