From: Marc-André Lureau <marcandre.lureau@xxxxxxxxx> --- server/red_worker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.c index b7de808..4d31995 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -782,8 +782,8 @@ static inline void red_handle_drawable_surfaces_client_synced( static int display_is_connected(RedWorker *worker) { - return (worker->display_channel && red_channel_is_connected( - &worker->display_channel->common.base)); + return worker->display_channel && + red_channel_is_connected(RED_CHANNEL(worker->display_channel)); } static int cursor_is_connected(RedWorker *worker) -- 2.4.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel