client: no need to check watch_output_changes 56/171056/2
authorBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 06:31:36 +0000 (15:31 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 23:50:59 +0000 (08:50 +0900)
1) If watch_output_changes == true, private_output->dpms has been already updated
in _tdm_client_output_cb_dpms.
2) If watch_output_changes == false, server will return TDM_ERROR_DPMS_OFF. The
dpms value in client side is not important. If a client calls tdm_client_output_get_dpms,
private_output->dpms will be updated.

Change-Id: I6d6ea1df74955c44ce02c2d7a39aa589d38ba516

client/tdm_client.c

index a665eb1..a257939 100644 (file)
@@ -1270,7 +1270,7 @@ tdm_client_vblank_wait(tdm_client_vblank *vblank, unsigned int interval, tdm_cli
        if (!private_vblank->started)
                private_vblank->started = 1;
 
-       if (private_output->watch_output_changes && !private_vblank->enable_fake) {
+       if (!private_vblank->enable_fake) {
                if (private_output->connection == TDM_OUTPUT_CONN_STATUS_DISCONNECTED) {
                        TDM_ERR("output disconnected");
                        pthread_mutex_unlock(&private_client->lock);
@@ -1382,7 +1382,7 @@ tdm_client_vblank_wait_seq(tdm_client_vblank *vblank, unsigned int sequence,
        if (!private_vblank->started)
                private_vblank->started = 1;
 
-       if (private_output->watch_output_changes && !private_vblank->enable_fake) {
+       if (!private_vblank->enable_fake) {
                if (private_output->connection == TDM_OUTPUT_CONN_STATUS_DISCONNECTED) {
                        TDM_ERR("output disconnected");
                        pthread_mutex_unlock(&private_client->lock);