From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur Date: Sat, 14 Oct 2023 16:23:00 +0800 Message-ID: <87o7h1a9zv.fsf@yahoo.com> References: <87cyxqmc24.fsf@err.no> <83cyxhsjsq.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4379"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Tollef Fog Heen , 66398@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 10:23:55 2023 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 1qrZwA-0000tD-JW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 10:23:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrZvw-0004zD-Tg; Sat, 14 Oct 2023 04:23:40 -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 1qrZvv-0004yi-55 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 04:23:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrZvu-00044X-T8 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 04:23:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrZwI-00070V-BQ for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 04:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 08:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66398 X-GNU-PR-Package: emacs Original-Received: via spool by 66398-submit@debbugs.gnu.org id=B66398.169727182926903 (code B ref 66398); Sat, 14 Oct 2023 08:24:02 +0000 Original-Received: (at 66398) by debbugs.gnu.org; 14 Oct 2023 08:23:49 +0000 Original-Received: from localhost ([127.0.0.1]:47838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrZw4-0006zq-Hz for submit@debbugs.gnu.org; Sat, 14 Oct 2023 04:23:49 -0400 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:45681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrZvx-0006vT-VH for 66398@debbugs.gnu.org; Sat, 14 Oct 2023 04:23:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697271792; bh=eqLNecdZ4+tsUhJTxazBZ4EnSU6luJXM770BUhXfcNs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=QLeliZTjpkE0aANrk3VxlFaO52qC72ob+X+3hh6gUILpVvxi+XlnzOi/wIZkTgj8guu/l1mesOpEIOxSRXfo2WmMxCYjyYxOcHrNDxuEQGC8g6GiGiZdUFp9HekRozQFQ0184FAlP63dS+pmTgvw0GnyXYZ76marJO7iR8VNKD4J/NPSI+Wf3WZo3ikGvEJ5364yg6Dn6nS1IHAEnVqujllHlIyOXlKxHvlFLzTH/n4eHivpHDb3CZb/OgmxWQNhM9A0+SUgRRcymYieT3QwPz+n87AqxdwrbR4FfvD5Kb5lAhy5LGulG5RjO5xgwC0YPo4ezmugrMtlv8Lb/w2pQg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697271792; bh=yQLtCnzjoRmkO7s+OJ4cbWT9PgkuHDBGCE43Pno72EO=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Mgzw9jpXrXxN2Vf2BK6/JT/LtAmMdsTjqcvAYjxMrR5iXgQrCf4j8tYGTZHjzH8Oi+Af288GwXTx3Zo4fpS4MyoYa11VsDrrQE923k7RIAexbtT8QWmavuY7fE9qnp1irHWYJREoalPC5PUytZ3DHJXhMhwQm7TvpnGhTT6UMRsMB7HFdjuAcM7gTKnnekpIL3uZBXi6hVRxUVImOAAkA/YiO173Ri3DTntR7At69rvvlDXNgeyeO4hlW0icsEe5h4P2h06AT6Gn6cC5TjAB1jllgbHOXc5oslUmuYAE83loNNUqJId6PxG4vdM47tF/wZ5kV/rX/LIHb6rxpn0nGQ== X-YMail-OSG: 7wiCnHkVM1mR2KUu1KGtuH_0fNZntCyfNoaj5tLxdGaLp7HeBhJfO5jcibECTTQ 1XY612bnTwMjPvuoW4s98IGW4ZB3H4a2ttOl0HheBrcMaI81B4v0MGoA5YdZHd9BujlQvFLt5R.l qLj11_PcfbA__8V9hqV1P7Sj_fRcTz26omUbi7tXvf.R14LAVYgxBPUx0u87gR2NYoHg7JfHOhhI xugJ9LbWliWFWqagSsAVwdAokRmX13nf2.y4.qn.gMzLcMXsN8YG5M_pevWK1lz0QH_C3QgmwxhC p1U5hoB46m786CkZadpvct981aq.kYosgmxvvu0RXcbKH8cu6NQCVLpU0ZJIQ9RAFcI0O5ATzPIp mFsRLduWUoSp_DhirAKsX9Ktxog.ZnpWYa2hkRgTl85kbHx.R27PJC4oCiyxhaer4BPvEzGaWH4N BjOBiKb4tkQT4tJotVWCQwVB7wr.DogJ2HzQxvWhNUcasQNkFhnvYSEa0fHfdhqPW_VB3AahMIhY puG4cH8NyUN0eFX.G83lym6O9A5j5JuByEhGHLbeEJP3bE0rdNgDSoasvjZvLerhpKuzaY2LlHtW pp_WSXswuSL2DJIitT_hL9Wpzixp6fDmZFZ_CoqxW45WRzLH_oJQ3VR47ZcGZdP4MhqT8w89wn9v IdFXfdght3MgyDp.W_Tffn6qpddlbJ43qJcIshtP94y0enS9j9.s9SZ7zTtV.Pq0hfSjMIFbgyYt ekeHRH8AJdulIgRvRGBrgxsJH2EhKEnBOfZRXlfMlFWp9qXDV2CK.F2h1vh1YFMfDB0sZxCzS5G0 WtsJIpnEf9q0Q7T29Fuuk0KnVrYtGRcAc683dZXGOa X-Sonic-MF: X-Sonic-ID: dfffdc80-980e-4487-a5cc-d45d7def3cb0 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sat, 14 Oct 2023 08:23:12 +0000 Original-Received: by hermes--production-sg3-57f7997989-qktqq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID da08fb35da8f97b4ae8d1fee8e4b6ae1; Sat, 14 Oct 2023 08:23:08 +0000 (UTC) In-Reply-To: <83cyxhsjsq.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Oct 2023 11:13:57 +0300") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:272392 Archived-At: Eli Zaretskii writes: >> From: Tollef Fog Heen >> Date: Sat, 07 Oct 2023 22:07:15 +0200 >> >> >> Hi folks, this is Debian bug #1053298, >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053298 : >> >> In my setup, I make non-focused windows semi-transparent (using Xmonad >> and its compose support). This used to work perfectly, but with the >> recent-ish update of emacs from 28.2 to 29.1, this broke. (Basically, >> what's described on >> https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Hooks-FadeInactive.html) >> >> I've bisected this down to: >> >> commit b299f173490f5c51476ad3c8436b19bb091c1b00 >> Author: Po Lu >> Date: Tue May 10 09:32:59 2022 +0800 >> >> Update alpha frame parameter when the window manager changes it >> >> * src/xfns.c (x_set_alpha): New function. Set >> `alpha_identical_p' flag. >> (x_frame_parm_handlers): Use it to handle `alpha' instead. >> >> * src/xterm.c (x_set_frame_alpha): Make tests against current >> alpha safer. >> (handle_one_xevent): Set frame alpha when alpha property >> changes. >> * src/xterm.h (struct x_output): New flag `alpha_identical_p'. >> >> src/xfns.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- >> src/xterm.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- >> src/xterm.h | 4 ++++ >> 3 files changed, 108 insertions(+), 3 deletions(-) >> >> which seems like a plausible change for causing such a bug. >> >> Note that the transparency of the window corrects itself if I switch >> buffers, and in some cases if there's just a message in the minibuffer, >> so it seems like emacs isn't always picking up the change in >> transparency which happens as it is being focused, but on a buffer focus >> change, it catches up. >> >> Interestingly enough, this only reproduces for me with the nvidia X11 >> driver, on my laptop (with Intel graphics) with the same emacs setup, >> I've never seen it. >> >> In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, >> cairo version 1.16.0) of 2023-08-30, modified by Debian built on >> x86-csail-01 >> Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 >> System Description: Debian GNU/Linux trixie/sid > > Po Lu, any comments? If possible, I'd like to fix this in Emacs 29.2. Tollef, would you please create a frame, ascertain the window ID of its shell window: (frame-parameter nil 'outer-window-id) then run xprop as so illustrated: $ xprop -id -spy before deactivating and reactivating that frame, posting the output from xprop here? TIA.