summaryrefslogtreecommitdiff
path: root/include/ui/sdl2.h
diff options
context:
space:
mode:
authorJindřich Makovička <makovick@gmail.com>2016-01-12 20:18:24 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-02-02 14:05:07 +0100
commit56bdd4b69aa10bec274b1e812685bcf44dcb0c72 (patch)
treefe0f5c5d53d3e1c126a9f830bf68a60396614e8c /include/ui/sdl2.h
parent919e11f3735c524e23d049512d3306ea1cc63fba (diff)
downloadqemu-56bdd4b69aa10bec274b1e812685bcf44dcb0c72.zip
sdl: shorten the GUI refresh interval when mouse or keyboard is active
Signed-off-by: Jindřich Makovička <makovick@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui/sdl2.h')
-rw-r--r--include/ui/sdl2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
index b7ac38f198..3f0b57bb16 100644
--- a/include/ui/sdl2.h
+++ b/include/ui/sdl2.h
@@ -19,6 +19,7 @@ struct sdl2_console {
int hidden;
int opengl;
int updates;
+ int idle_counter;
SDL_GLContext winctx;
#ifdef CONFIG_OPENGL
ConsoleGLState *gls;