vnc: Set display as enabled on init
Since 9c77a78af2ef85f3fcdce21b42d89566a9f7ee17 the vnc display has
stopped setting the show hint and started to ignore the initial zoom
setting. Let's handle it in a similar way as the spice display and set
the hint when the display is initialized and unset it on disconnect.
Resolves: rhbz#1436991
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
Pavel Grunt
7 years ago
133 | 133 |
g_object_set(app, "uuid", _("VNC does not provide GUID"), NULL);
|
134 | 134 |
}
|
135 | 135 |
|
|
136 |
virt_viewer_display_set_enabled(display, TRUE);
|
136 | 137 |
virt_viewer_display_set_show_hint(display,
|
137 | 138 |
VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, TRUE);
|
138 | 139 |
|
121 | 121 |
display = virt_viewer_display_vnc_new(session, session->priv->vnc);
|
122 | 122 |
g_debug("Disconnected");
|
123 | 123 |
g_signal_emit_by_name(session, "session-disconnected", NULL);
|
|
124 |
virt_viewer_display_set_enabled(VIRT_VIEWER_DISPLAY(display), FALSE);
|
124 | 125 |
virt_viewer_display_set_show_hint(VIRT_VIEWER_DISPLAY(display),
|
125 | 126 |
VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, FALSE);
|
126 | 127 |
}
|