if (LIST_IS_EMPTY(&private_output->change_handler_list)) {
wl_tdm_output_watch_output_changes(private_output->output, 1);
+ wl_display_roundtrip_queue(private_client->display, private_client->queue);
/* TODO: this is very tricky.
* If a client adds the change_handler, we might be able to guess that
free(h);
if (LIST_IS_EMPTY(&private_output->change_handler_list)) {
- if (!CHECK_WL_PROTOCOL_ERROR(private_client))
+ 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);
+ }
}
pthread_mutex_unlock(&private_client->lock);