From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115689 invoked by alias); 22 Feb 2020 18:06:55 -0000 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 Received: (qmail 115677 invoked by uid 89); 22 Feb 2020 18:06:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*f:sk:8f41a40, H*f:sk:83imjyi, readjusts, H*i:sk:83imjyi X-HELO: gateway23.websitewelcome.com Received: from gateway23.websitewelcome.com (HELO gateway23.websitewelcome.com) (192.185.50.108) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 22 Feb 2020 18:06:53 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway23.websitewelcome.com (Postfix) with ESMTP id ECFA642A4 for ; Sat, 22 Feb 2020 12:06:50 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 5ZAwjY1X3XVkQ5ZAwju835; Sat, 22 Feb 2020 12:06:50 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XfmBUb0vrUuS1M0t8VVPsBUWwXHQ/GalYz33KaGJsiw=; b=b/DKpdeCZXt21lKBaqTcErmhNn muZSw6C1l//9IQIrJptUfd5I6IryfrNkezwYjrP+JHL7cWu6iPb5anQGwIOE0fBkXp8qaeQvjxHld aiB7R4+mY6yuCcvpKAGAY1oXn; Received: from 75-166-123-50.hlrn.qwest.net ([75.166.123.50]:57142 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1j5ZAw-003vnj-MF; Sat, 22 Feb 2020 11:06:50 -0700 From: Tom Tromey To: Eli Zaretskii Cc: Simon Marchi , tom@tromey.com, midenok@gmail.com, gdb-patches@sourceware.org Subject: Re: GDB 9 TUI mode broken References: <835zg5m7ib.fsf@gnu.org> <83mu9aj1pj.fsf@gnu.org> <8f41a400-0c17-4fec-3de1-0bd93423298f@simark.ca> <83imjyip6n.fsf@gnu.org> Date: Sat, 22 Feb 2020 18:06:00 -0000 In-Reply-To: <83imjyip6n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Feb 2020 18:04:16 +0200") Message-ID: <87tv3i5wee.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2020-02/txt/msg00888.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: Eli> The next question is: what code readjusts the location of the locator Eli> window when the source or the command window is resized, and where is Eli> that code called? because the preceding code in Eli> tui_adjust_win_heights modifies only 2 windows: the one whose height Eli> was directly changed by the winheight command, and the other one, Eli> which is displayed above or below it. Other cases in tui_adjust_win_heights move the locator explicitly: locator->resize (1, width, 0, (second_win->origin.y + second_win->height + 1)); This just needs to be added to the first case, that you already modified: if (cur_layout == SRC_COMMAND || cur_layout == DISASSEM_COMMAND) ... Tom