only create wayland screensaver timer in wayland mode
authorMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 23 Nov 2015 19:46:32 +0000 (14:46 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 23 Nov 2015 19:47:37 +0000 (14:47 -0500)
probably fix T2867

src/bin/e_screensaver.c

index cedfcae..41b10b6 100644 (file)
@@ -287,7 +287,7 @@ _e_screensaver_handler_screensaver_off_cb(void *data EINA_UNUSED, int type EINA_
    else if (_e_screensaver_ask_presentation_count)
      _e_screensaver_ask_presentation_count = 0;
 #ifdef HAVE_WAYLAND
-   if (_e_screensaver_timeout)
+   if (_e_screensaver_timeout && (e_comp->comp_type == E_PIXMAP_TYPE_WL))
      _e_screensaver_timer = ecore_timer_add(_e_screensaver_timeout, _e_screensaver_idle_timeout_cb, (void*)1);
 #endif
    return ECORE_CALLBACK_PASS_ON;