diff options
author | Alon Levy <alevy@redhat.com> | 2013-05-17 10:35:29 -0400 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2013-05-17 11:06:29 -0400 |
commit | 97459ddfdb0b1d5456bccb60d0943d94495ac890 (patch) | |
tree | 853313023b3c6e118a80e9e8cc929ca059dbad2d | |
parent | c09faf2382c47aa5ea1cdf30b4a75f410da74623 (diff) | |
download | spice-97459ddfdb0b1d5456bccb60d0943d94495ac890.tar.gz spice-97459ddfdb0b1d5456bccb60d0943d94495ac890.tar.xz spice-97459ddfdb0b1d5456bccb60d0943d94495ac890.zip |
server/red_worker: s/driver_has_monitors_config/driver_cap_monitors_config/ (plus small comment)
-rw-r--r-- | server/red_worker.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index fb736b52..8f3e4788 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -1040,7 +1040,7 @@ typedef struct RedWorker { uint64_t *command_counter; #endif - int driver_has_monitors_config; + int driver_cap_monitors_config; int set_client_capabilities_pending; } RedWorker; @@ -11442,7 +11442,9 @@ static void dev_create_primary_surface(RedWorker *worker, uint32_t surface_id, set_monitors_config_to_primary(worker); if (display_is_connected(worker) && !worker->display_channel->common.during_target_migrate) { - if (!worker->driver_has_monitors_config) { + /* guest created primary, so it will (hopefully) send a monitors_config + * now, don't send our own temporary one */ + if (!worker->driver_cap_monitors_config) { red_worker_push_monitors_config(worker); } red_pipes_add_verb(&worker->display_channel->common.base, @@ -11746,7 +11748,7 @@ static void handle_dev_monitors_config_async(void *opaque, void *payload) /* TODO: raise guest bug (requires added QXL interface) */ return; } - worker->driver_has_monitors_config = 1; + worker->driver_cap_monitors_config = 1; if (dev_monitors_config->count == 0) { spice_warning("ignoring an empty monitors config message from driver"); return; @@ -11902,7 +11904,7 @@ void handle_dev_driver_unload(void *opaque, void *payload) { RedWorker *worker = opaque; - worker->driver_has_monitors_config = 0; + worker->driver_cap_monitors_config = 0; } void handle_dev_loadvm_commands(void *opaque, void *payload) @@ -12171,7 +12173,7 @@ static void red_init(RedWorker *worker, WorkerInitData *init_data) worker->jpeg_state = init_data->jpeg_state; worker->zlib_glz_state = init_data->zlib_glz_state; worker->streaming_video = init_data->streaming_video; - worker->driver_has_monitors_config = 0; + worker->driver_cap_monitors_config = 0; ring_init(&worker->current_list); image_cache_init(&worker->image_cache); image_surface_init(worker); |