Allow output name "primary" in tdm_client_wait_vblank
[platform/core/uifw/libtdm.git] / src / tdm_server.c
index 99ff6d0..1233deb 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;