summaryrefslogtreecommitdiffstats
path: root/server/spice-experimental.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-09-16 08:56:38 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-09-20 16:12:30 +0200
commitb353c8e04f96b28058b7151d5f71d3bca97feb8c (patch)
treeeb374afdd5cffe41c06aeaad53637f430d63e85f /server/spice-experimental.h
parentd8e783905425ee5c26420f4d0e54d1905bae6609 (diff)
downloadspice-b353c8e04f96b28058b7151d5f71d3bca97feb8c.tar.gz
spice-b353c8e04f96b28058b7151d5f71d3bca97feb8c.tar.xz
spice-b353c8e04f96b28058b7151d5f71d3bca97feb8c.zip
client: don't crash when booting a Xinerama setup
In a Xinerama setup, when X starts up and creates one of the secondary screens, first a non-primary surface is created on the secondary screen, and then the primary surface for this screen is created. This causes a crash when the guest uses Xinerama and the client is attached to the VM before X starts (ie while the guest is booting). This happens because DisplayChannel::create_canvas (which is called when creating a non-primary surface) assumes a screen has already been set for the DisplayChannel while this only happens upon primary surface creation. However, it uses the screen for non important stuff, so we can test if screen() is non NULL before using it. This is what is done in other parts of this file. Fixes rhbz #732423
Diffstat (limited to 'server/spice-experimental.h')
0 files changed, 0 insertions, 0 deletions