From patchwork Sat Jul 30 09:39:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 107492 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 36DD0B6F18 for ; Sat, 30 Jul 2011 19:59:22 +1000 (EST) Received: from localhost ([::1]:46760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn623-0000Gl-EV for incoming@patchwork.ozlabs.org; Sat, 30 Jul 2011 05:40:31 -0400 Received: from eggs.gnu.org ([140.186.70.92]:58342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn613-00061s-2x for qemu-devel@nongnu.org; Sat, 30 Jul 2011 05:39:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qn610-0005cR-4G for qemu-devel@nongnu.org; Sat, 30 Jul 2011 05:39:29 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:58720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qn60z-0005bs-Tx for qemu-devel@nongnu.org; Sat, 30 Jul 2011 05:39:26 -0400 Received: from smtp03.web.de ( [172.20.0.65]) by fmmailgate01.web.de (Postfix) with ESMTP id 1F76E19476B68; Sat, 30 Jul 2011 11:39:25 +0200 (CEST) Received: from [92.75.128.27] (helo=localhost.localdomain) by smtp03.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #2) id 1Qn60z-0001Sl-00; Sat, 30 Jul 2011 11:39:25 +0200 From: Jan Kiszka To: Anthony Liguori , qemu-devel Date: Sat, 30 Jul 2011 11:39:11 +0200 Message-Id: X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX19H4Q0hx77wbmryp3NHj5YqpjVOxjGjhVqYU23y /FWIkeYIlMXvjF2bFVyz6Sal6Z70j2Eotd9ZUlEzvRjmchff85 UhyfTAumM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.221 Subject: [Qemu-devel] [PATCH 08/15] sdl: Initialize gui_fullscreen earlier during setup X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jan Kiszka This ensures that we actually enter full screen on startup when e.g. '-vga none -full-screen' was specified. Signed-off-by: Jan Kiszka --- ui/sdl.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index 80bf776..f19bae2 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -891,6 +891,11 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) qemu_free(filename); } + if (full_screen) { + gui_fullscreen = 1; + sdl_grab_start(); + } + dcl = qemu_mallocz(sizeof(DisplayChangeListener)); dcl->dpy_update = sdl_update; dcl->dpy_resize = sdl_resize; @@ -920,8 +925,4 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) sdl_cursor_normal = SDL_GetCursor(); atexit(sdl_cleanup); - if (full_screen) { - gui_fullscreen = 1; - sdl_grab_start(); - } }