From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: input-pending-p after make-frame-visible Date: Mon, 27 Sep 2021 10:51:10 +0200 Message-ID: <2b2c2a7f-4c4a-a293-361e-86911e9f88b7@gmx.at> References: <786eca99-bb42-c744-af26-b0435a745a81@gmx.at> <1d7cee7a-6137-609c-1400-f161dc8c860e@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3727"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Aaron Jensen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 27 10:53:05 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mUmNl-0000rw-HY for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Sep 2021 10:53:05 +0200 Original-Received: from localhost ([::1]:34580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUmNk-0004sD-Cd for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Sep 2021 04:53:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUmLz-000275-BM for emacs-devel@gnu.org; Mon, 27 Sep 2021 04:51:15 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:60285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUmLx-0002lC-EG for emacs-devel@gnu.org; Mon, 27 Sep 2021 04:51:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1632732670; bh=YMTCnjLMe+LkjwYAstOTBu0/eDSgu2dbWInbWHUIBt8=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=hU8uF5VqBd4ln+7goUXxdrtO1cZVsAMgsIsqsjEzdA5qCZ+D786k4qYyxV83PCNMy TNNcMDS1hyyIkfaiMut/E2rO/tHntvjbUcVOGZbfYgT6j/zjBd2n8rPB0QXb66TLRn wY8BgH4MB21ZQCGvyb9g1cZdNcSCoEUIFS8PIGcQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([212.95.5.209]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MIMfc-1maKFO37bw-00ENBz; Mon, 27 Sep 2021 10:51:10 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:zvJyb7n2KkO04ODW86aXTfiHzIGaEfnrTlDlYAniTYA2+48F58Q dX5QSvB+v/h2sj+Piq3JFZe/P4xqU98S7vL7GAePmUuV0iJScsKmfbb/jAY4gVR525An7oa 6Udg+9K1TsEoRR5qt4LSZ6dcmqd2bIH2HrzCV1NJr/ESj+1krRy2bIlFa08BhtPgFskO5Pf 5N161Wh9yuSKhIT6pUTrw== X-UI-Out-Filterresults: notjunk:1;V03:K0:y8p4yEMl/ro=:nhHeTHPOROB67MH3i7Xxoe eEMCArEv/nPgFFHjbGcbNSqRSeQaWpGh/wzFMyqKPg6DeKiWke9P7b6jlE7PyxrCGwma/zIwC HccnWUhIYQPQlCNJU++NqJPmNEonxRXIq1oaYeqI0EbSRUVf4NQHo3BOg8PRK/W6Qk48ibRce uJpWOEpyiXbDHaqvCFaJAC0sTdFz6AkjZv3AAnj3TLz3V5fqcYlO8G6iHIMlcmsYzQm1cTp2e lqbKl3mGxxkHCje93ECZ/npNSgir6VQWVNwwjqqma+h2WtLv1oDwmYaDd+cTaqDUSUbpqlXpD VwSTb0FgzTaLyEU2GehKwK7XmMaaGOYtCvVW/f5kDTKtu/BiSigfdLZ0m5Ezk7lMM2G7/DvA0 t4IViqVp5Q2tJvLOFFS65VKnnz5D1I5mNb4FM7fkg35YiR3/vaO3yTtXlK1vmJbFwm9MEodpU Ga1PxfLGDAIio6URwMWitZo120PE8n1+SyL4qu3lMvbMd2ggIueRnXIzYtqoM0BrNf5Dl5hkH KNvFHXKiLPky1BsskAKSqOYE9CmG5g4bAMAnYRATrjnuNyo30Jsjr2oev/oMYoOQUCAvSiRif xWqBRxEKLrt23ZjHBN+KT0iBTiGXXwzZT8geOvM5pGRPWPjIsrJKwGIY+SjK0n3VboJcBFYuZ BAFl5FSwx0EsC3HcaECsPCYO/4HLMe8lGd7rvouB4/QqWRJrCMagaaD7Iqrm40pNlMT/Z62Ng 8EKwrE8A9iEkpl9IVMElD5MRqpl2LWahgkrLIk8DLj7yLgrcHuflJTqiZE0/kHR4aehXUTg6 Received-SPF: pass client-ip=212.227.17.21; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275558 Archived-At: > I only see my problem sometimes. It doesn't reproduce if I restart > Emacs until it does (some random amount of time later) So you have to trigger it, somehow. > When I do the above, if I focus away from the 2nd frame and back I see > nothing. With and/or without my patch? Please compare the behaviors. > If I minimize it (I'm on macOS, so not sure if that is the > closest thing to lowering) then I either get a focus-out-event or > switch-frame-event because it ends up giving the focus to the 1st > frame, that's just how macOS works. That's why I told you to provide for a third window (using another Emacs process or another application) that gets focus when you minimize the Emacs frame. But getting a focus-out event with the patch applied _is_ bad - these should be caught by the patch. > Maybe I can find a place to put > last-input-event if it reproduces again. > > I'm using your patch now, so I can let you know if it happens again. You can also set 'while-no-input-ignore-events' to include or rule out specific events. martin