aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-21 20:08:55 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-21 20:08:55 +0000
commitbcfad70fb0189ba4aca8661e46de95e7149009c6 (patch)
tree6200c114ca1298b56055e5202614258fcfae4e66 /sdl.c
parentHandle terminating signals (Gerd Hoffmann) (diff)
downloadqemu-kvm-bcfad70fb0189ba4aca8661e46de95e7149009c6.tar.gz
qemu-kvm-bcfad70fb0189ba4aca8661e46de95e7149009c6.tar.bz2
qemu-kvm-bcfad70fb0189ba4aca8661e46de95e7149009c6.zip
add DisplayState->idle (Samuel Thibault)
Add idle field to DisplayState struct, so drivers can figure the display is idle and take advantage of that. The xen framebuffer driver will use this to communicate the idle state to the guest, so it knows it can stop doing updates to a virtual display which is invisible anyway. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5056 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdl.c b/sdl.c
index 84a9d6dcd..15427c527 100644
--- a/sdl.c
+++ b/sdl.c
@@ -524,9 +524,11 @@ static void sdl_refresh(DisplayState *ds)
if (ev->active.gain) {
/* Back to default interval */
ds->gui_timer_interval = 0;
+ ds->idle = 0;
} else {
/* Sleeping interval */
ds->gui_timer_interval = 500;
+ ds->idle = 1;
}
}
break;