client: reset watch_output_changes when removing all handlers 91/172691/1
authorBoram Park <boram1288.park@samsung.com>
Thu, 15 Mar 2018 05:28:12 +0000 (14:28 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 15 Mar 2018 06:59:03 +0000 (15:59 +0900)
Change-Id: I985579a2c5022a97d0ae7834280b22857bc484dc

client/tdm_client.c

index 81998e6..1d78e39 100644 (file)
@@ -935,6 +935,7 @@ tdm_client_output_remove_change_handler(tdm_client_output *output,
                free(h);
 
                if (LIST_IS_EMPTY(&private_output->change_handler_list)) {
+                       private_output->watch_output_changes = 0;
                        if (!CHECK_WL_PROTOCOL_ERROR(private_client)) {
                                wl_tdm_output_watch_output_changes(private_output->output, 0);
                                wl_display_roundtrip_queue(private_client->display, private_client->queue);