From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTuRj-0003UX-2E for qemu-devel@nongnu.org; Thu, 01 Nov 2012 09:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTuRb-0005pp-8j for qemu-devel@nongnu.org; Thu, 01 Nov 2012 09:04:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTuRb-0005ol-0B for qemu-devel@nongnu.org; Thu, 01 Nov 2012 09:04:23 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA1D4LxA005811 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 1 Nov 2012 09:04:22 -0400 From: Gerd Hoffmann Date: Thu, 1 Nov 2012 14:04:01 +0100 Message-Id: <1351775057-3938-7-git-send-email-kraxel@redhat.com> In-Reply-To: <1351775057-3938-1-git-send-email-kraxel@redhat.com> References: <1351775057-3938-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 06/22] console: init displaychangelisteners on register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- console.h | 3 +++ vl.c | 1 - 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/console.h b/console.h index 00e2f03..7e0ac76 100644 --- a/console.h +++ b/console.h @@ -241,6 +241,9 @@ static inline void register_displaychangelistener(DisplayState *ds, DisplayChang { QLIST_INSERT_HEAD(&ds->listeners, dcl, next); gui_setup_refresh(ds); + if (dcl->dpy_gfx_resize) { + dcl->dpy_gfx_resize(ds); + } } static inline void unregister_displaychangelistener(DisplayState *ds, diff --git a/vl.c b/vl.c index 8716fc0..df776e9 100644 --- a/vl.c +++ b/vl.c @@ -3876,7 +3876,6 @@ int main(int argc, char **argv, char **envp) #endif /* display setup */ - dpy_gfx_resize(ds); text_consoles_set_display(ds); if (foreach_device_config(DEV_GDB, gdbserver_start) < 0) { -- 1.7.1