ui/console: get the DisplayState from new_console()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 30 Aug 2023 09:37:43 +0000 (13:37 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 4 Sep 2023 08:37:45 +0000 (12:37 +0400)
commit2fd319cff0ffbc0b54a61a2a34775ec40836e4c4
tree54b96af4f794d3902b2a2b3623f707096f4b81b7
parentcbcf0fa8fd9723ee51af803bf58a8d6d3e6a4194
ui/console: get the DisplayState from new_console()

There is no obvious reason to defer text console initialization. We can
simply take the global display state in new_console().

This simplify somewhat the code to allow moving the VC to a separate unit.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230830093843.3531473-10-marcandre.lureau@redhat.com>
ui/console.c