From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tollef Fog Heen Newsgroups: gmane.emacs.bugs Subject: bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur Date: Sat, 07 Oct 2023 22:07:15 +0200 Organization: Private Message-ID: <87cyxqmc24.fsf@err.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29982"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 66398@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 08 02:52:15 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 1qpI1k-0007JF-1W for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Oct 2023 02:52:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpI1K-0005vO-R2; Sat, 07 Oct 2023 20:51:46 -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 1qpI1H-0005v1-3b for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 20:51:43 -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 1qpI1G-0003Uy-SA for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 20:51:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpI1a-0006Am-52 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 20:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tollef Fog Heen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Oct 2023 00:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66398 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169672628523672 (code B ref -1); Sun, 08 Oct 2023 00:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Oct 2023 00:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:56068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpI0w-00069f-PG for submit@debbugs.gnu.org; Sat, 07 Oct 2023 20:51:25 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:53836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpDaa-0005Ho-P7 for submit@debbugs.gnu.org; Sat, 07 Oct 2023 16:07:53 -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 1qpDaB-0000ip-EP for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 16:07:27 -0400 Original-Received: from vuizook.err.no ([2a02:20c8:2640::2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpDa8-0003Tu-J6 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 16:07:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=err.no; s=vuizook-202208; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From :Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: In-Reply-To:References; bh=4akwAiMoiK+0pBxCwaXKRoes0B+pbuC6AYA1fjnhTh0=; b=VY Oysp9MBUjRaTmK8XJMBa9vaY1pU54d7nbBptRSM7Jrejhfg8D5/TyOhO6wtCrEw1MkGS22/REAvOy a7k+e4HIj895ocTC0yhGr2/KlMiRddC7IfR0teqCJ2uFRgIBf2jnYQxM3ErXCWDuOrixp4aYeqpZU IclrTF2mfmE//7f+a7TQr/j/+HATOeFhyFDz7XFvlCVOcfoQzDGgIvTkz8L0iSmrN4hC2Y8zs7MDV LvNZTX9XPvD3KUc5vmqcptQw6fEYJapjQDEKLZIifpycfADHXEhcUTsQuX2h/wTuDPwI5kzfGJFxz NTYccmHbqrEyqg1MqkfaqqP1rZTdRZBA==; Original-Received: from 198.51-175-90.customer.lyse.net ([51.175.90.198] helo=xoog.err.no) by vuizook.err.no with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qpDZz-00Ddan-26; Sat, 07 Oct 2023 20:07:17 +0000 Original-Received: by xoog.err.no (Postfix, from userid 1000) id 199F71781AD9; Sat, 7 Oct 2023 22:07:15 +0200 (CEST) Received-SPF: pass client-ip=2a02:20c8:2640::2; envelope-from=tfheen@err.no; helo=vuizook.err.no X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 07 Oct 2023 20:51:21 -0400 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:272053 Archived-At: 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 Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/libexec --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/29.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/29.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-native-compilation --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/libexec --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/29.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/29.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-native-compilation --with-cairo --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -ffile-prefix-map=/build/reproducible-path/emacs-29.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Features: (shadow emacsbug smerge-mode diff macros term/screen term/xterm xterm bookmark rect tabify org-archive python project compat treesit dabbrev vc-git vc-dispatcher make-mode reporter debian-bug flow-fill cal-move autorevert oc-basic org-element org-persist org-id avl-tree generator ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi misearch multi-isearch mule-util time-stamp w3m-form w3m-bookmark mm-archive sort gnus-cite textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg qp mail-extr gnus-ml disp-table gnus-topic nndraft nnmh utf-7 nnfolder network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-icalendar org-capture org-refile w3m doc-view filenotify image-mode exif timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-favicon w3m-image tab-line w3m-proc w3m-util deuglify gnus-art mm-uu mml2015 gnus-sum shr pixel-fill url-file svg dom gnus-group gnus-undo nnir gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader range cus-edit pp cus-start cus-load notmuch notmuch-tree notmuch-jump notmuch-hello wid-edit notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash diff-mode easy-mmode coolj goto-addr thingatpt icalendar diary-lib diary-loaddefs notmuch-tag crm notmuch-lib notmuch-version notmuch-compat pcase hl-line message sendmail yank-media dired dired-loaddefs rfc822 mml mailabbrev mail-utils gmm-utils mailheader mm-view mml-smime mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search smime gnutls puny dig mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr real-auto-save atomic-chrome websocket bindat let-alist server ido edmacro kmacro org-clock org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs time tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-osc ansi-color ring parse-time iso8601 time-date format-spec auto-header comp comp-cstr warnings icons rx cl-extra help-mode eweouz vcard jka-compr finder-inf cl w3m-load develock kinsoku advice url-auth dpkg-dev-el info debian-el haskell-mode-autoloads notmuch-autoloads seq-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) -- Tollef Fog Heen UNIX is user friendly, it's just picky about who its friends are