using utilx_get_screen_capture function for MDM
authordeasung.kim <deasung.kim@samsung.com>
Thu, 20 Oct 2011 08:47:55 +0000 (17:47 +0900)
committerdeasung.kim <deasung.kim@samsung.com>
Thu, 20 Oct 2011 08:47:55 +0000 (17:47 +0900)
src/scrcapture.c

index 3871305..d29a965 100644 (file)
@@ -117,6 +117,13 @@ static Eina_Bool _scrcapture_capture_postprocess(void* data)
 Eina_Bool capture_current_screen(void *data)
 {
        struct appdata *ad = data;
+       if (!utilx_get_screen_capture(XOpenDisplay(NULL)))
+       {
+               DTRACE("utilx_get_screen_capture: disable\n");
+               return EINA_FALSE;
+       }
+       else
+               DTRACE("utilx_get_screen_capture: enable\n");
 
        if (g_shot)
        {