qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] ui/sdl2: fix full screen initialization.


From: Juan RP
Subject: [Qemu-devel] [PATCH] ui/sdl2: fix full screen initialization.
Date: Wed, 3 Sep 2014 13:05:08 +0200

gui_fullscreen was not initialized before creating the window with
SDL_CreateWindow(). Move initialization a bit early to fix the issue.

Signed-off-by: Juan RP <address@hidden>
---
 ui/sdl2.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/ui/sdl2.c b/ui/sdl2.c
index fcac87b..04ffda3 100644
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -867,6 +867,11 @@ void sdl_display_init(DisplayState *ds, int full_screen, 
int no_frame)
         exit(1);
     }
 
+    if (full_screen) {
+        gui_fullscreen = 1;
+        sdl_grab_start(0);
+    }
+
     for (i = 0;; i++) {
         QemuConsole *con = qemu_console_lookup_by_index(i);
         if (!con) {
@@ -898,11 +903,6 @@ void sdl_display_init(DisplayState *ds, int full_screen, 
int no_frame)
         g_free(filename);
     }
 
-    if (full_screen) {
-        gui_fullscreen = 1;
-        sdl_grab_start(0);
-    }
-
     mouse_mode_notifier.notify = sdl_mouse_mode_change;
     qemu_add_mouse_mode_change_notifier(&mouse_mode_notifier);
 
-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]