* [Qemu-devel] [PATCH] ui/sdl2: fix full screen initialization.
@ 2014-09-03 11:05 Juan RP
0 siblings, 0 replies; only message in thread
From: Juan RP @ 2014-09-03 11:05 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan RP
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 <xtraeme@gmail.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-03 11:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-03 11:05 [Qemu-devel] [PATCH] ui/sdl2: fix full screen initialization Juan RP
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).