forked from enlightenment/efl
ecore_x - add some minor calls to be able to suspend/resume screensaver
This commit is contained in:
parent
eeb66d4d32
commit
007dd02c56
|
@ -1972,7 +1972,9 @@ EAPI int ecore_x_screensaver_interval_get(void);
|
||||||
EAPI void ecore_x_screensaver_event_listen_set(Eina_Bool on);
|
EAPI void ecore_x_screensaver_event_listen_set(Eina_Bool on);
|
||||||
EAPI Eina_Bool ecore_x_screensaver_custom_blanking_enable(void); /** @since 1.7 */
|
EAPI Eina_Bool ecore_x_screensaver_custom_blanking_enable(void); /** @since 1.7 */
|
||||||
EAPI Eina_Bool ecore_x_screensaver_custom_blanking_disable(void); /** @since 1.7 */
|
EAPI Eina_Bool ecore_x_screensaver_custom_blanking_disable(void); /** @since 1.7 */
|
||||||
|
EAPI void ecore_x_screensaver_supend(void);
|
||||||
|
EAPI void ecore_x_screensaver_resume(void);
|
||||||
|
|
||||||
/* FIXME: these funcs need categorising */
|
/* FIXME: these funcs need categorising */
|
||||||
|
|
||||||
typedef struct _Ecore_X_Window_Attributes
|
typedef struct _Ecore_X_Window_Attributes
|
||||||
|
|
|
@ -368,3 +368,20 @@ ecore_x_screensaver_custom_blanking_disable(void)
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
ecore_x_screensaver_supend(void)
|
||||||
|
{
|
||||||
|
#ifdef ECORE_XCB_SCREENSAVER
|
||||||
|
xcb_screensaver_suspend(_ecore_xcb_conn, 1);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
ecore_x_screensaver_resume(void)
|
||||||
|
{
|
||||||
|
#ifdef ECORE_XCB_SCREENSAVER
|
||||||
|
xcb_screensaver_suspend(_ecore_xcb_conn, 0);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
|
@ -202,3 +202,19 @@ ecore_x_screensaver_custom_blanking_disable(void)
|
||||||
#endif /* ifdef ECORE_XSS */
|
#endif /* ifdef ECORE_XSS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
ecore_x_screensaver_supend(void)
|
||||||
|
{
|
||||||
|
#ifdef ECORE_XSS
|
||||||
|
XScreenSaverSuspend(_ecore_x_disp, 1);
|
||||||
|
#endif /* ifdef ECORE_XSS */
|
||||||
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
ecore_x_screensaver_resume(void)
|
||||||
|
{
|
||||||
|
#ifdef ECORE_XSS
|
||||||
|
XScreenSaverSuspend(_ecore_x_disp, 0);
|
||||||
|
#endif /* ifdef ECORE_XSS */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue