From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16683 invoked by alias); 21 Jul 2010 20:53:09 -0000 Received: (qmail 16668 invoked by uid 22791); 21 Jul 2010 20:53:08 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-bw0-f41.google.com (HELO mail-bw0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Jul 2010 20:53:04 +0000 Received: by bwz9 with SMTP id 9so582405bwz.0 for ; Wed, 21 Jul 2010 13:53:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.126.161 with SMTP id c33mr571659bks.108.1279745581588; Wed, 21 Jul 2010 13:53:01 -0700 (PDT) Received: by 10.204.18.144 with HTTP; Wed, 21 Jul 2010 13:53:01 -0700 (PDT) Date: Wed, 21 Jul 2010 20:53:00 -0000 Message-ID: Subject: [patch] Call tui_resize_all() after a resize From: Balazs Kezes To: gdb-patches Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00339.txt.bz2 Currently tui_resize_all is never called. This could be called from the SIGWINCH handler but because the resize logic is a bit complex it is safer to mark a global variable and call this function later. The marking in the handler is already in the code. The global variable is currently also marked in this tui_resize_all so this patch removes it from there. -- Balazs Index: tui-io.c =================================================================== RCS file: /cvs/src/src/gdb/tui/tui-io.c,v retrieving revision 1.23 diff -c -p -r1.23 tui-io.c *** tui-io.c 25 May 2010 15:48:44 -0000 1.23 --- tui-io.c 21 Jul 2010 20:34:54 -0000 *************** tui_handle_resize_during_io (unsigned in *** 711,716 **** --- 711,717 ---- { if (tui_win_resized ()) { + tui_resize_all (); tui_refresh_all_win (); dont_repeat (); tui_set_win_resized_to (FALSE); Index: tui-win.c =================================================================== RCS file: /cvs/src/src/gdb/tui/tui-win.c,v retrieving revision 1.47 diff -c -p -r1.47 tui-win.c *** tui-win.c 17 May 2010 22:21:43 -0000 1.47 --- tui-win.c 21 Jul 2010 20:43:22 -0000 *************** tui_resize_all (void) *** 799,805 **** tui_win_list[win_type] = (struct tui_win_info *) NULL; } } - tui_set_win_resized_to (TRUE); /* Turn keypad back on, unless focus is in the command window. */ if (win_with_focus != TUI_CMD_WIN)