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: Question about minibuffer and child frames (Posframe) Date: Wed, 2 Oct 2024 19:34:31 +0200 Message-ID: <618c87b7-c5a6-40ee-8440-75f5b48bfc43@gmx.at> References: <1d2d916e-82b9-4672-bbd6-4583b5edad14@gmx.at> <24c75fcd-cbd6-4f7f-94d2-636814fcf4c7@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="13504"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Emacs Devel To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 02 19:35:26 2024 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 1sw3G2-0003Le-1C for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Oct 2024 19:35:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sw3FG-00048k-5L; Wed, 02 Oct 2024 13:34:38 -0400 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 1sw3FF-00048W-0N for emacs-devel@gnu.org; Wed, 02 Oct 2024 13:34:37 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sw3FD-0000W2-4J for emacs-devel@gnu.org; Wed, 02 Oct 2024 13:34:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1727890472; x=1728495272; i=rudalics@gmx.at; bh=tZKjA3kdVrtNJvJ5mk1m2lIyku8jggFCQmxk/R3Z7OA=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Zy+A3CeAztCVLLXgyHTGpjhvKlh1q1eufi02/VtGdvKoL9ko8XXD5R9dTE3O5OTU Y+0ZfK+VkcOOlpFzLaIyL5jQdetJdJPGufahmrSzIhen95+JtO0NKoEv3c3P9NWLD 4L+iB9tEV0+khoWziqfB4Zssvfny3UQuA5ZokFyMNE15oeA/KKYRnIRUYudqZVg0p /9eVpWxwiyMoJRCviIeB2ro0l90N5CHce9H9Mt42I3opecI7iWPumM4fWTpllRJiP EOH8B9IhIcsnGSVKeBRxKRqnodDRzyXV3D3EYp9oSbzQi2Hh8LxQhDgiB3CVgHhww dpGUEI+R17r/eqRZKQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.97.14]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M9Wuk-1sqZ4O0pka-007YDN; Wed, 02 Oct 2024 19:34:32 +0200 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:wLk0ZnJJj0c+NEW3V2IZnn63yFXvd0M2r+gJ5zeLNi0H3Sh8fGm B5NZoVmdsrcRNAu2urK+zDjpldobia2uYR+OE55qypUmiHY3G9TJfhsXvd8QzjZkQTmoZX8 Hv/G9RWxIPvl5wdFrz3wCq4xZkGz7jYCCYwhoM6Z29c18NOqhg3C7wvyXqJJStUrAOtMhYr oPVbRCdSyKDBUhSjdEaQw== UI-OutboundReport: notjunk:1;M01:P0:FaxHI9boC7I=;8cxptIij73hc5RBjePy1dwljUNE Z3hZCGtiyebkvR3Kdf/LGm1XiqCxDkqUnKHQ6EEJdyyGgCTwPioGNY1d7iUk98gjLhcCUdyCE DHRxA7lFtQkCqG00FHl8NOa4AdliPlsdVj8QQMookDBAYWC/Db2MQEqLHzb5B4ClKLPnnAIvF byKjisuWU7+2LI3z+GmK0VMe+rvsp4sONrYN1p06vFCRsw/UnDWPFqZMSLnsF/JbpvccTVMwT JbZOELpAFParltLf3al/0wi005SfGiSQVw2hL19oD2Km7vV27vQB0JC2NaHyjxIzfisoOLPek KQk15qWs9sGKES2+XXT+2O5PG6edE9pN2QGAymvwOuvXxyNZMfavafIRaAgWkeH93BpdFjJlO EHKqASiLsEQDE6s41Bz4+k1NApRL5s3wu212Dzgy5RTNMhaEjOnlVVTfQf1/K624goxZp9vwE NQBSjeb9mCOd69kwOz+HMHvpYb8lPPZDH56OPkyp49HZ6TdxKw+nu3kzBIWcBIHt80asiJZ+N aGBm+TEW7bbfInepQfoSG9Dav69QNB6trzaZKG45m+2Ehv5TatyL3lK+54n7OZLE75KWyZQET oTXl/5L/cO8tfe9VLPFosv/bzVkeFGQEcJ/7eIeVRr9wtgH/l1GgAjCb5EgLe9TcHtCHE73Pu IQfJxdqHllrXSDYr99yrVU+g6WPbUTRQq5BKnR3Bw/qOURUjwzYKDlmM7a4NAN8QWK8m09xU4 3JyUvJrgKiqWOBWXCAosnjBHEq493mxWBgGU9zDaxo2mB8RZA7bY2dCiwmDVaqxkebMW1on1 Received-SPF: pass client-ip=212.227.15.18; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324253 Archived-At: >> The modeline of the "Completions* window seems to have the same >> background as the modeline of the normal frame's *scratch* window. >> Doesn't that hint at redisplay believing that both windows are the >> selected one? > > Probably. They are the (frame-selected-window) of their respective > frames. I guess that has previously not been possible to see on a tty. > Cab't check at the moment--I've made me a todo to check if xdisp.c does > this differently on ttys. At any time there's only one selected window. When it changes, redisplay is told to update all possibly involved frames and update the background of the mode line of the selected and previously selected windows appropriately. > Got an idea while eating: Does Emacs get a window system focus event > when we unhide a frame? Or something like it? And do we select the frame > then maybe? When that frame gets focus by the WM; it depends on the WM's settings. A frame can get focused by making it, moving the mouse over it, clicking with the mouse into it, Alt-tabbing to it, or by having an application ask to give it focus. I suppose that Emacs has the invariant that the focused frame is also the selected one even if it is hidden. In either case, for a tty we have to do the "focusing" ourselves. martin