qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Juan RP <xtraeme@gmail.com>
To: qemu-devel@nongnu.org
Cc: Juan RP <xtraeme@gmail.com>
Subject: [Qemu-devel] [PATCH] ui/sdl2: fix full screen initialization.
Date: Wed,  3 Sep 2014 13:05:08 +0200	[thread overview]
Message-ID: <1409742308-22001-1-git-send-email-xtraeme@gmail.com> (raw)

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

                 reply	other threads:[~2014-09-03 11:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1409742308-22001-1-git-send-email-xtraeme@gmail.com \
    --to=xtraeme@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).