From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59351: 29.0.50; [PATCH] Fix mouse click position to menu bar entry Date: Sat, 26 Nov 2022 19:38:08 +0200 Message-ID: <834julsjjz.fsf@gnu.org> References: <87tu2wlku7.fsf@elite.giraud> <878rk8ee6d.fsf@yahoo.com> <8735agr0g4.fsf@elite.giraud> <83o7t4bhk4.fsf@gnu.org> <87zgcov1ps.fsf@elite.giraud> <8335agbai5.fsf@gnu.org> <875yfcuw5r.fsf@elite.giraud> <83r0y09td6.fsf@gnu.org> <87zgcotbw9.fsf@elite.giraud> <83iljc9k5s.fsf@gnu.org> <871qpt7hac.fsf@elite.giraud> <83y1s1y3vg.fsf@gnu.org> <87fse7jd7t.fsf@elite.giraud> <8735a7jczf.fsf@elite.giraud> <8335a5ubgr.fsf@gnu.org> <87sfi5aaph.fsf@elite.giraud> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15380"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 59351@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 26 18:38:31 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oyz8J-0003nw-PO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Nov 2022 18:38:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyz80-0007YP-6y; Sat, 26 Nov 2022 12:38:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyz7s-0007X8-Cd for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 12:38:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyz7q-0005mt-Sf for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 12:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyz7q-00030n-8W for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 12:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Nov 2022 17:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59351 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59351-submit@debbugs.gnu.org id=B59351.166948427511571 (code B ref 59351); Sat, 26 Nov 2022 17:38:02 +0000 Original-Received: (at 59351) by debbugs.gnu.org; 26 Nov 2022 17:37:55 +0000 Original-Received: from localhost ([127.0.0.1]:41348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyz7j-00030Z-DS for submit@debbugs.gnu.org; Sat, 26 Nov 2022 12:37:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyz7e-00030M-NY for 59351@debbugs.gnu.org; Sat, 26 Nov 2022 12:37:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyz7Y-0005jh-53; Sat, 26 Nov 2022 12:37:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=A9lMg+QiPQOrvBdB1bl7S4rOMR6h011mmrakFlOm/iY=; b=qlC94Ij+zjUh B0C9PrZUoMKtHaL7dBb4CTAnXvbRuhyukEgfI7abPU44kuNUMcnNkGZ+esIoBoo9UnISVES7QVV7Q H/1EO2UQySW1izcwxP1fxoU609k9egBoF0Fy7Um1+lwY25Y/xBX4pJ+aaZRbP+5DzMeg/1YZ/ylb8 yO3EM+ikr4IQ41fhSZnn6t4i2qPJyrl8wMMGGbGXUhLKdXLfkZ2rErLekA+3MwnnNxWaAHLCdIG4n kdQEdr+95sGEnnU6/y/hoV4T0GySquMMd5vNGEnduwf81M1OfxzQoTwrwZaxUBPxfwuxUhPyIuRcg 6XU5Su3zfyQkb4dYYwAa0w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyz7X-0004Or-BH; Sat, 26 Nov 2022 12:37:43 -0500 In-Reply-To: <87sfi5aaph.fsf@elite.giraud> (message from Manuel Giraud on Sat, 26 Nov 2022 18:26:34 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249119 Archived-At: > From: Manuel Giraud > Cc: luangruo@yahoo.com, 59351@debbugs.gnu.org > Date: Sat, 26 Nov 2022 18:26:34 +0100 > > Eli Zaretskii writes: > > [...] > > > The idea looks correct, thanks. What exactly prevents this from working > > with multiple windows on the same frame? > > For instance, when vertically split (by C-x 3), the other window is not > correctly redrawn (text area is above menu bar). Everything is then > fixed by the next unsplit/split. Maybe, I should have use > adjust_frame_size here. In redisplay_internal, we have: if (FRAME_VISIBLE_P (f) && !FRAME_OBSCURED_P (f)) { /* If fonts changed on visible frame, display again. */ if (f->fonts_changed) { adjust_frame_glyphs (f); /* Disable all redisplay optimizations for this frame. For the reasons, see the comment near the previous call to adjust_frame_glyphs above. */ SET_FRAME_GARBAGED (f); f->fonts_changed = false; goto retry_frame; } It sounds like this part is not being run in your case, so please try to figure out why. I think if the above code runs, what you want to do will happen automatically.