mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
ui/console: Add placeholder flag to message surface
The surfaces created with former qemu_create_message_surface did not display the content from the guest and always contained simple messages describing the reason. A display backend may want to hide the window showing such a surface. This change renames the function to qemu_create_placeholder_surface, and adds "placeholder" flag; the display can check the flag to decide to do anything special like hiding the window. Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com> Message-Id: <20210225101316.83940-1-akihiko.odaki@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
Gerd Hoffmann
parent
4313739a57
commit
b5a087b071
2
ui/vnc.c
2
ui/vnc.c
@ -799,7 +799,7 @@ static void vnc_dpy_switch(DisplayChangeListener *dcl,
|
||||
|
||||
if (surface == NULL) {
|
||||
if (placeholder == NULL) {
|
||||
placeholder = qemu_create_message_surface(640, 480, placeholder_msg);
|
||||
placeholder = qemu_create_placeholder_surface(640, 480, placeholder_msg);
|
||||
}
|
||||
surface = placeholder;
|
||||
}
|
||||
|
Reference in New Issue
Block a user