Allow output name "primary" in tdm_client_wait_vblank 73/74773/3 accepted/tizen/common/20160620.162430 accepted/tizen/ivi/20160617.082231 accepted/tizen/mobile/20160617.081648 accepted/tizen/tv/20160617.081743 accepted/tizen/wearable/20160617.081836 submit/tizen/20160616.063425
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 15 Jun 2016 10:51:09 +0000 (19:51 +0900)
committerchangyeon lee <cyeon.lee@samsung.com>
Thu, 16 Jun 2016 06:11:48 +0000 (23:11 -0700)
Change-Id: I39b4e5fa789ccda07a7b1156ecc11482237818cf

src/tdm_server.c

index 99ff6d0e3503eec22c6f2929e9791d541d11de9e..1233debdaa48403a15c152eab110e99ba576b558 100644 (file)
@@ -264,6 +264,9 @@ _tdm_server_client_cb_wait_vblank(struct wl_client *client,
                        found = client_info->vblank_output;
        }
 
+       if (!strncmp(name, "primary", TDM_NAME_LEN))
+               found = tdm_display_get_output(private_loop->dpy, 0, NULL);
+
        if (!found) {
                int count = 0, i;