mirror of https://gitee.com/openkylin/qemu.git
0a2b5e3a78
With a SPICE_DISPLAY_CAP_MONITORS_CONFIG capable client, the client needs to know what part of the primary to use for each monitor. If the guest driver does not support this, the server sends messages to the client for a single monitor spanning the entire primary. As soon as the guest calls spice_qxl_monitors_config_async once, the server sets the red_worker driver_has_monitors_config flag and stops doing this. This is a problem when the driver gets unloaded, for example after a reboot or when switching to a text vc with usermode mode-setting under Linux. To reproduce this start a multi-mon capable Linux guest which uses usermode mode-setting and then once X has started switch to a text vc. Note how the client window does not only not resize, if you try to resize it manually you always keep blackborders since the aspect is wrong. This patch calls a new spice-server method called spice_qxl_driver_unload which clears the driver_has_monitors_config flag inside the server, thereby fixing this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> |
||
---|---|---|
.. | ||
Makefile.objs | ||
ads7846.c | ||
blizzard.c | ||
blizzard_template.h | ||
cirrus_vga.c | ||
cirrus_vga_rop.h | ||
cirrus_vga_rop2.h | ||
cirrus_vga_template.h | ||
exynos4210_fimd.c | ||
framebuffer.c | ||
framebuffer.h | ||
g364fb.c | ||
jazz_led.c | ||
milkymist-tmu2.c | ||
milkymist-vgafb.c | ||
milkymist-vgafb_template.h | ||
omap_dss.c | ||
omap_lcd_template.h | ||
omap_lcdc.c | ||
pl110.c | ||
pl110_template.h | ||
pxa2xx_lcd.c | ||
pxa2xx_template.h | ||
qxl-logger.c | ||
qxl-render.c | ||
qxl.c | ||
qxl.h | ||
sm501.c | ||
sm501_template.h | ||
ssd0303.c | ||
ssd0323.c | ||
tc6393xb.c | ||
tc6393xb_template.h | ||
tcx.c | ||
vga-isa-mm.c | ||
vga-isa.c | ||
vga-pci.c | ||
vga.c | ||
vga.h | ||
vga_int.h | ||
vga_template.h | ||
vmware_vga.c | ||
xenfb.c |