From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Question about minibuffer and child frames (Posframe) Date: Thu, 03 Oct 2024 09:35:56 +0200 Message-ID: References: <1d2d916e-82b9-4672-bbd6-4583b5edad14@gmx.at> <24c75fcd-cbd6-4f7f-94d2-636814fcf4c7@gmx.at> <618c87b7-c5a6-40ee-8440-75f5b48bfc43@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15712"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 03 12:23:37 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 1swIzg-0003vf-LD for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Oct 2024 12:23:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swGPU-00052N-VD; Thu, 03 Oct 2024 03:38:05 -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 1swGPL-00051v-SM for emacs-devel@gnu.org; Thu, 03 Oct 2024 03:37:59 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swGOg-0000iI-QC for emacs-devel@gnu.org; Thu, 03 Oct 2024 03:37:45 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a8d60e23b33so91140466b.0 for ; Thu, 03 Oct 2024 00:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727940958; x=1728545758; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UIU5lyFgKsC1gP76CSV8AjdyLl4Q660goexUHH3k0t4=; b=akl6Y0Z73RHlHKTbKMgr7pPinED0u4mbz+W4x6XMvxFYy7vGbLkVi+pxg9fffToL/2 2Fin1hT3yS2x1jyTOKPEyK3rBdHJONIRRJs6YLGHyjHoz4yoviiU7lK3zOUhYspLVbYC bsIA2dBvbBc22jTwRc2dw6TD6oTf8yR56AxQ/d+/TnmUa3AjAwh7vY69ok3edkQB00x9 svh3AQs2VNswXwwxBRHlJYMNhzt5Zc81LD8IZqr6zYICw4C8fXiLOhQBWLzrT5tLWJwI jeTcyr3VupZ6FgWqBZ1UMWQm4GnLoVayT3svvPocNlqM2BUy763wAfonM1xnD5NyZr3C t+dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727940958; x=1728545758; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=UIU5lyFgKsC1gP76CSV8AjdyLl4Q660goexUHH3k0t4=; b=jxeauIlvOXfuskF15mfsD0EQ72FG63Tj46vrWE6Z4ghy4tq5jFHWnN8AOQhDCaepsS n0mnFl8CNKNdPyKjLXbVi2panJqbPcH6DDmn6eXFmPgy7KXXFAKqOGwqRih5eaPDhG01 /ZS+Pw4M490yQ6VkLJ4FJXMUyiqa7t+u35sX1zVyzJczrHCpnTpzD4Z2lvR+aZYCy3eR 5FJLUahC8R6DvfSHOpFoXIE2o3um48gB0JzJX6cKXt+2M5eHEQzk+fUb6MIPInIWIkg+ 3u7DCNELdh5ccvGrYp4CD4AJvBWz1NqiL1fOU2IYluQbTQ3Nh7tSV3G8X3Q5sO1ARGm9 rZ3g== X-Gm-Message-State: AOJu0YxhGE+xNbrLAzACFLZj/xi1PKpyhSHlS4NHo935EblLGC2BAAGN HLyEJQNbW8ycdCTztknTEkUmoS0kTatOaemJXATTB0bE5D43DTjxYSB/NQ== X-Google-Smtp-Source: AGHT+IE3dMEZ0hw9J4NKO7lTeY3gH+UglGXjQG28aEQfX/L1UUxaP7/TGs5gSD1SudOlMrWV++PK5A== X-Received: by 2002:a17:906:4fc7:b0:a8d:61ca:271e with SMTP id a640c23a62f3a-a98f820833bmr505969666b.6.1727940957503; Thu, 03 Oct 2024 00:35:57 -0700 (PDT) Original-Received: from MacBookPro.fritz.box (pd9e36aa3.dip0.t-ipconnect.de. [217.227.106.163]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99104c9b28sm44428766b.210.2024.10.03.00.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 00:35:57 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M?= =?utf-8?Q?=C3=B6llmann=22's?= message of "Wed, 02 Oct 2024 20:48:36 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no 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:324274 Archived-At: Gerd M=C3=B6llmann writes: > martin rudalics writes: > >>>> 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. > > I've made me a todo entry for that. One thing after the other :-). > > (And for Alacritty users reading this: 0.13.2 (1) KKP support is > currently broken for me on macOS 15.) > >>> 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. > > Yeah, if that's not the current problem, there lie dragons. Shit. Did I > mention that I just wanted Corfu and Posframe? Just FYI. when I manually select-frame-set-input-focus to the posframe, the display looks okay. The cursor is shown in the posframe and the parent's mini-window is empty, like in the GUI case. Downside is that Emacs doesn't accept input anymore, and has to be killed :-).