ecore-x: Fix calls to disable dpms in xcb
authorChris Michael <cp.michael@samsung.com>
Tue, 27 Jan 2015 15:27:49 +0000 (10:27 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 27 Jan 2015 16:04:50 +0000 (11:04 -0500)
Summary: We already have ecore_x_dpms code which handles this
properly, so call it here.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_x/xcb/ecore_xcb_screensaver.c

index e660b95..fb55bbd 100644 (file)
@@ -389,11 +389,11 @@ ecore_x_screensaver_resume(void)
 EAPI void
 ecore_x_screensaver_reset(void)
 {
-   xcb_dpms_disable(_ecore_xcb_conn);
+   ecore_x_dpms_enabled_set(0);
 }
 
 EAPI void
 ecore_x_screensaver_activate(void)
 {
-   xcb_dpms_enable(_ecore_xcb_conn);
+   ecore_x_dpms_enabled_set(1);
 }