From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#40639: 26.3; Child frame border color not rendered when child frame has no minibuffer Date: Wed, 15 Apr 2020 19:20:45 +0200 Message-ID: References: <16aef18e-c440-ca3a-a41b-5079d206ece4@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="102457"; mail-complaints-to="usenet@ciao.gmane.io" To: Alexander Miller , 40639@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 15 19:22:19 2020 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 1jOljv-000QYx-Oi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Apr 2020 19:22:19 +0200 Original-Received: from localhost ([::1]:53006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOlju-0002uG-Cc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Apr 2020 13:22:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42758) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOlih-0002u3-Qi for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 13:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOlig-0004P4-Of for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 13:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53725) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOlig-0004Om-GE for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 13:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOlig-0000YX-Cs for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 13:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Apr 2020 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40639 X-GNU-PR-Package: emacs Original-Received: via spool by 40639-submit@debbugs.gnu.org id=B40639.15869712562105 (code B ref 40639); Wed, 15 Apr 2020 17:21:02 +0000 Original-Received: (at 40639) by debbugs.gnu.org; 15 Apr 2020 17:20:56 +0000 Original-Received: from localhost ([127.0.0.1]:37038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOlia-0000Xr-6F for submit@debbugs.gnu.org; Wed, 15 Apr 2020 13:20:56 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:56031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOliX-0000Xc-W6 for 40639@debbugs.gnu.org; Wed, 15 Apr 2020 13:20:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586971247; bh=Pmz9LToFwto5uc41pxkv6r0SG1qrkSdGeqfsXGh/l9c=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=OcgGD3BoCqy0YVySwc4GTLcIqqbTQXZ7gne/hCfNin3+TVchM2Y2JoxGkQKb9aZ7I oNd5TTPaZ0QOdZ4Jtc+bfcbzAwoePAFA3nxC1PhnuvqLgr660Uwul3URZmpjFmcIpB EYvbMasui0VFDM2dkFaSIV7g7WmRURqOvvXLuzkM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.176]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N8GQs-1jBgq63vwO-0148oP; Wed, 15 Apr 2020 19:20:47 +0200 In-Reply-To: <16aef18e-c440-ca3a-a41b-5079d206ece4@web.de> Content-Language: en-US X-Provags-ID: V03:K1:jsPFWrnZh7dC59CCpU/xlRMmtlWkKrwce5roz2Vz4np0us/fCTY nG4Nb9SyEFuxlQDqAg+glM2u0/OO7xAB4IalDlNpfhGGSUUZYvQ4AqVFT2xgKbJ3jXiQRpL wmPb967Itt62yErQXAefmokNR4JdoM1Fq9lWo5q58PaCW9Vh1w8OjC0f5Xu7DPhwoMVBZdQ meMuZDz/L4YbL5YnkdRLw== X-UI-Out-Filterresults: notjunk:1;V03:K0:1xYo3u6Mnro=:TAuPdh1q6d9/AU+0V79zT9 4AVAElNxECTa1SxEklSej+6CBo7PRaFsYQ8/4SQYveas1S/erxl2/CSFRPlFBydCNB15P3oxm wvTS2/J6W10/x+K8sYe9FnFLyaGTMPr4btGA58rSDbNo+j+bnUICwyB5obuoef6pmog0hVWUY QXt3KOgdX/ixdKNFR/kX/xT+cLfalab+37LKXwDKuTddacdmeRa4NcKFfFEU0ukZzsBUQ2lmX K4RoFZQP2bDOC9ycDfPUq9uf9PLSLIiT1/BHIN0IzfvyoZ2bF3l+nVI6A78LS5fWbAQ5UHeAv /0fyj3MA2i9P7SfiZbll7wn6Zu2Lswlb47rPe0ESJC5VFAFBFjRHWlOCbZMd0J9xglPhdShwi 3CZbfOB9XaCQv/dl60BElkdFSLoltSUxeGVcSCSfwKO/jbra5FPMMZ5ZSSCxbXN4Oh+QXfEmT SW03/Y+09Q2et8F3zNnHVHh1agCcfN00t719+sHFaGgrcblFGupnoipmBIgPIFuaDJQwPj2dL e5l+53BEtxA3E/uzrNa/nmpIv+v0mSLLwKnzJ49Wyyub11JLzDnEKK0N8salFNVASuq1l7fcy 3x+Nyq4SwxiKe4ES4eh/PX6VpoL6IwQNfPQI2cK5xSChNIg8ChKg/EWWw+eKy8GpTMnJY0jVa r2EhIRmjYBZ9YN/4PERXC+c4oHqaHYzebrROx7CTFe1jmLt+pZwdWdgJrLVNbdBNOqCocYp12 PCY+MUbPRZUfxgFm0UnnLvhjub/EbDOMSXRRIqNUbFroVf0WplreUs3NN8yIyyGfqMNwINWO X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:178413 Archived-At: > Starting from emacs -q run this: > > (set-face-background 'internal-border "red") > (select-window > (display-buffer-in-child-frame > (get-buffer-create "*scratch*") > '((child-frame-parameters > . > ((left . 100) > (top . 100) > (height . 10) > (width . 100) > (minibuffer . nil) > (internal-border-width . 300)))))) > > The child frame will pop up and its large border covers a large parts of > the buffer, but it is the same color as the background, not the red we > have set above. The only way I found to fix the color is to click on the > child frame. Calling the likes of select-frame, x-focus-frame, > select-frame-set-input-focus does not help. When the minibuffer > parameter is set to t the border is drawn as expected. > > If the call to select-window is left out the border will have the wrong > color regardless of minibuffer setting. Clicking the child frame will > likewise change it to red. > > It could be that this is related to my unorthodox wm setup: I am running > xfce with i3wm replacing xfwm4. I'm aware of this bug and see it frequently when debugging child frame issues. Unfortunately, I don't know what's causing it because I have no idea how face remapping is supposed to work internally. What happens is that when x_clear_under_internal_border runs this part int face_id = !NILP (Vface_remapping_alist) ? lookup_basic_face (NULL, f, INTERNAL_BORDER_FACE_ID) : INTERNAL_BORDER_FACE_ID; struct face *face = FACE_FROM_ID_OR_NULL (f, face_id); block_input (); if (face) { unsigned long color = face->background; the value of color for a new normal frame is for a few calls white but switches to red before the frame appears on the display. A child frame usually must be explicitly focused before its border becomes red (I don't necessarily need the mouse for that purpose, C-x 5 o works too). Maybe our experts in face remapping have an idea. martin