ui/vc: Do not inherit the size of active console
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 19 Mar 2024 03:08:39 +0000 (12:08 +0900)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 20 Mar 2024 06:27:47 +0000 (10:27 +0400)
commit271a197425528f4448b3d351be25995abe901374
tree1d6069c43e8563ef8a0fd50517699c06fc2f6e70
parentc62d54d0a8067ffb3d5b909276f7296d7df33fa7
ui/vc: Do not inherit the size of active console

A chardev-vc used to inherit the size of a graphic console when its
size not explicitly specified, but it often did not make sense. If a
chardev-vc is instantiated during the startup, the active graphic
console has no content at the time, so it will have the size of graphic
console placeholder, which contains no useful information. It's better
to have the standard size of text console instead.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20240319-console-v2-1-3fd6feef321a@daynix.com>
ui/console-vc.c