qxl: call dpy_gfx_resize when entering vga mode
commite32c25b5f2452c7fed4dbe8962f4a9f4831fbe24
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 30 Oct 2012 13:55:12 +0000 (30 14:55 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 5 Nov 2012 10:49:22 +0000 (5 11:49 +0100)
tree10fd0f1669f24fa235078fcd8616ca8d10397f44
parent958c2bceba06696e9c223498aaf81d06ce95f608
qxl: call dpy_gfx_resize when entering vga mode

When entering vga mode the display size likely changes,
notify all displaychangelisteners about this.

Probably went unnoticed for a while as one if the first
things the guest does after leaving qxl native mode and
entering qxl vga mode is to set the vga video mode.  But
there is still a small window where qemu can operate on
stale data, leading to crashes now and then.

https://bugzilla.redhat.com/show_bug.cgi?id=865767

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl.c