On Tue, Mar 17, 2026 at 12:51:02PM +0400, Marc-André Lureau wrote:
> Previously, the display change listener was registered early in
> vnc_display_new() without a console, requiring vnc_display_open() to
> conditionally unregister and re-register it when the actual console was
> resolved. Since vnc_display_new() and vnc_display_open() were merged in
> the previous commit, simply delay the registration and keyboard state
> initialization to vnc_display_open(), after the console has been looked
> up. This removes the conditional re-registration and simplifies the code.
> 
> Signed-off-by: Marc-André Lureau <[email protected]>
> ---
>  ui/vnc.c | 12 +++---------
>  1 file changed, 3 insertions(+), 9 deletions(-)

Reviewed-by: Daniel P. Berrangé <[email protected]>


With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|


Reply via email to