unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
@ 2023-10-07 20:07 Tollef Fog Heen
  2023-10-14  8:13 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Tollef Fog Heen @ 2023-10-07 20:07 UTC (permalink / raw)
  To: 66398


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 <luangruo@yahoo.com>
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





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-07 20:07 bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur Tollef Fog Heen
@ 2023-10-14  8:13 ` Eli Zaretskii
  2023-10-14  8:23   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2023-10-14  8:13 UTC (permalink / raw)
  To: Tollef Fog Heen, Po Lu; +Cc: 66398

> From: Tollef Fog Heen <tfheen@err.no>
> 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 <luangruo@yahoo.com>
> 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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-14  8:13 ` Eli Zaretskii
@ 2023-10-14  8:23   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-10-14 17:31     ` Tollef Fog Heen
  0 siblings, 1 reply; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-10-14  8:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Tollef Fog Heen, 66398

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Tollef Fog Heen <tfheen@err.no>
>> 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 <luangruo@yahoo.com>
>> 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 <outer window ID> -spy

before deactivating and reactivating that frame, posting the output from
xprop here?

TIA.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-14  8:23   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-10-14 17:31     ` Tollef Fog Heen
  2023-10-15  1:25       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Tollef Fog Heen @ 2023-10-14 17:31 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 66398

]] Po Lu 

Hi,

> before deactivating and reactivating that frame, posting the output from
> xprop here?

_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 1073, 1057
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
                bitmap id # to use for icon: 0x52044b3
                bitmap id # of mask for icon: 0x52044b9
                window id # of group leader: 0x5200001
_GTK_THEME_VARIANT(UTF8_STRING) =
_NET_WM_ICON(CARDINAL) =        Icon (48 x 48):

                            ░░░▒▒░░░
                        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒
                      ░▒▒▒▒░░░░░░░░░▒▒▒▒▒░
                    ░▒▒▒░░░░░░░░░░░░░░░▒▒▒▒░
                   ▒▒▒░░░░░░░░░░░░░░░░░░░▒▒▒▒
                 ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒
                ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░
               ░▒▒░░░░░░░░░░░░░░░       ░▒▒▒▒▒▒▓
              ░▒▒░░░░░░░░░░░░░           ░▒▒▒▒▒▒▒
              ▒▒░░░░░░░░░░░░░░░░░░░░░    ░▒▒▒▒▒▒▒▒
             ▒▒░░░░░░░░░░░░░░░░░░░░░      ▒▒▒▒▒▒▒▒▒
            ░▒░░░░░░░░░░░░░░░            ░▒▒▒▒▒▒▒▒▓
            ▒▒░░░░░░░░░                  ░▒▒▒▒▒▒▒▒▒▒
           ░▒░░░░░░░░░                 ░▒▒▒▒▒▒▒▒▒▒▒▓
           ▒▒░░░░░░░░         ░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
           ▒░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
          ▒▒░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
          ▒▒░░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
          ▒▒░░░░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
          ▒░░░░░░░░░░░▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
         ░▒░░░░░░░░░░▒▒▒▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
         ░▒░░░░░░░░░▒▒▒▒▒▒▒░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
         ░▒░░░░░░░▒▒▒▒▒░░             ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
         ░▒░░░░░░▒▒▒▒░             ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
         ░▒░░░░░▒▒▒░           ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
         ░▒░░░▒▒▒▒░          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
         ░▒░░▒▒▒▒░         ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
          ▓▒▒▒▒▒▒░        ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
          ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
          ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
          ░▒▒▒▒▒▒▒        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
           ▒▒▒▒▒▒▒▒░         ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
           ░▒▒▒▒▒▒▒▒░                     ░░▒▒▒▒▒▒▒▓░
            ▒▒▒▒▒▒▒▒▒▒░░                    ░▒▒▒▒▒▒▒
            ░▒▒▒▒▒▒▒▒▒▒▒▒▒░░                ▒▒▒▒▒▒▓░
             ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░     ░▒▒▒▒▒▒▓▒
              ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░      ░░▒▒▒▒▒▒▒▒▓
              ░▓▒▒▒▒▒▒▒▒▒▒▒░░      ░░▒▒▒▒▒▒▒▒▒▒▒▓
               ░▓▒▒▒▒▒▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
                ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
                 ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
                  ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒
                    ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░
                      ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒
                        ░▒▓▓▒▒▒▒▒▒▒▓▓▓▒░
                           ░░▒▒▒▒▒▒░░

XdndAware(ATOM) = BITMAP
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 86000395, 86000396
_NET_WM_USER_TIME(CARDINAL) = 1422382098
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x520430a
WM_CLIENT_LEADER(WINDOW): window id # 0x5200001
_NET_WM_PID(CARDINAL) = 3313810
WM_LOCALE_NAME(STRING) = "nb_NO.utf8"
WM_CLIENT_MACHINE(STRING) = "xoog"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                program specified minimum size: 40 by 17
                program specified resize increment: 8 by 17
                program specified base size: 40 by 17
                window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "emacs", "Emacs"
WM_ICON_NAME(STRING) = "*test "
_NET_WM_ICON_NAME(UTF8_STRING) = "*test "
WM_NAME(STRING) = "*test "
_NET_WM_NAME(UTF8_STRING) = "*test "
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_USER_TIME(CARDINAL) = 1422405540
_NET_WM_USER_TIME(CARDINAL) = 1422405540
_NET_WM_USER_TIME(CARDINAL) = 1422406221
_NET_WM_USER_TIME(CARDINAL) = 1422406221
_NET_WM_ICON(CARDINAL) =        Icon (48 x 48):

                            ░░░▒▒░░░
                        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒
                      ░▒▒▒▒░░░░░░░░░▒▒▒▒▒░
                    ░▒▒▒░░░░░░░░░░░░░░░▒▒▒▒░
                   ▒▒▒░░░░░░░░░░░░░░░░░░░▒▒▒▒
                 ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒
                ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░
               ░▒▒░░░░░░░░░░░░░░░       ░▒▒▒▒▒▒▓
              ░▒▒░░░░░░░░░░░░░           ░▒▒▒▒▒▒▒
              ▒▒░░░░░░░░░░░░░░░░░░░░░    ░▒▒▒▒▒▒▒▒
             ▒▒░░░░░░░░░░░░░░░░░░░░░      ▒▒▒▒▒▒▒▒▒
            ░▒░░░░░░░░░░░░░░░            ░▒▒▒▒▒▒▒▒▓
            ▒▒░░░░░░░░░                  ░▒▒▒▒▒▒▒▒▒▒
           ░▒░░░░░░░░░                 ░▒▒▒▒▒▒▒▒▒▒▒▓
           ▒▒░░░░░░░░         ░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
           ▒░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
          ▒▒░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
          ▒▒░░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
          ▒▒░░░░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
          ▒░░░░░░░░░░░▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
         ░▒░░░░░░░░░░▒▒▒▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
         ░▒░░░░░░░░░▒▒▒▒▒▒▒░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
         ░▒░░░░░░░▒▒▒▒▒░░             ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
         ░▒░░░░░░▒▒▒▒░             ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
         ░▒░░░░░▒▒▒░           ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
         ░▒░░░▒▒▒▒░          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
         ░▒░░▒▒▒▒░         ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
          ▓▒▒▒▒▒▒░        ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
          ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
          ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
          ░▒▒▒▒▒▒▒        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
           ▒▒▒▒▒▒▒▒░         ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
           ░▒▒▒▒▒▒▒▒░                     ░░▒▒▒▒▒▒▒▓░
            ▒▒▒▒▒▒▒▒▒▒░░                    ░▒▒▒▒▒▒▒
            ░▒▒▒▒▒▒▒▒▒▒▒▒▒░░                ▒▒▒▒▒▒▓░
             ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░     ░▒▒▒▒▒▒▓▒
              ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░      ░░▒▒▒▒▒▒▒▒▓
              ░▓▒▒▒▒▒▒▒▒▒▒▒░░      ░░▒▒▒▒▒▒▒▒▒▒▒▓
               ░▓▒▒▒▒▒▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
                ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
                 ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░
                  ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒
                    ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░
                      ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒
                        ░▒▓▓▒▒▒▒▒▒▒▓▓▓▒░
                           ░░▒▒▒▒▒▒░░



WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
                bitmap id # to use for icon: 0x52044bf
                bitmap id # of mask for icon: 0x52044c5
                window id # of group leader: 0x5200001
_NET_WM_NAME(UTF8_STRING) = " *Minibuf-1* "
WM_NAME(STRING) = " *Minibuf-1* "
_NET_WM_ICON_NAME(UTF8_STRING) = " *Minibuf-1* "
WM_ICON_NAME(STRING) = " *Minibuf-1* "
WM_ICON_NAME(STRING) = " *Minibuf-1* "
_NET_WM_ICON_NAME(UTF8_STRING) = " *Minibuf-1* "
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
_NET_WM_USER_TIME(CARDINAL) = 1422406864
_NET_WM_USER_TIME(CARDINAL) = 1422406864
_NET_WM_USER_TIME(CARDINAL) = 1422408217
_NET_WM_USER_TIME(CARDINAL) = 1422408217
_NET_WM_NAME(UTF8_STRING) = "*test "
WM_NAME(STRING) = "*test "
_NET_WM_ICON_NAME(UTF8_STRING) = "*test "
WM_ICON_NAME(STRING) = "*test "
WM_ICON_NAME(STRING) = "*test "
_NET_WM_ICON_NAME(UTF8_STRING) = "*test "
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836

The actions I took were:
- run xprop (initial output up to the first WM_STATE)
- focus emacs frame (it was still showing as partially transparent at
this point, as if it had not been focused, this is the next
_NET_WM_WINDOW_OPACITY and WM_STATE lines
- move focus back to the terminal I ran xprop in (new set of
_NET_WM_WINDOW_OPACITY and WM_STAE
- move focus to emacs again (next WM_STATE + WM_NET_WINDOW_OPACITY
- M-x (which forces emacs to realise it's in the foreground and repaint
with the correct transparency), this is (most of) the rest of the output
- moved focus back to terminal, interrupted xprop

Please let me know if anything is unclear or any other sort of
information I can provide or experiments/patches to test.

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-14 17:31     ` Tollef Fog Heen
@ 2023-10-15  1:25       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-10-15 20:14         ` Tollef Fog Heen
  0 siblings, 1 reply; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-10-15  1:25 UTC (permalink / raw)
  To: Tollef Fog Heen; +Cc: Eli Zaretskii, 66398

Tollef Fog Heen <tfheen@err.no> writes:

> The actions I took were:
> - run xprop (initial output up to the first WM_STATE)
> - focus emacs frame (it was still showing as partially transparent at
> this point, as if it had not been focused, this is the next
> _NET_WM_WINDOW_OPACITY and WM_STATE lines
> - move focus back to the terminal I ran xprop in (new set of
> _NET_WM_WINDOW_OPACITY and WM_STAE
> - move focus to emacs again (next WM_STATE + WM_NET_WINDOW_OPACITY
> - M-x (which forces emacs to realise it's in the foreground and repaint
> with the correct transparency), this is (most of) the rest of the output
> - moved focus back to terminal, interrupted xprop
>
> Please let me know if anything is unclear or any other sort of
> information I can provide or experiments/patches to test.

The window property printouts weren't very enlightening.  AFAICT the
opacity is being reset to 1.0 when the frame is focused, but something
promptly reverts it to its former value thereafter.

Would you place a breakpoint on x_set_frame_alpha in xterm.c, more
specifically:

  XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity,
		   XA_CARDINAL, 32, PropModeReplace,
		   (unsigned char *) &opac, 1);

configure it to print a backtrace each time it is hit, and post the
output here?  Repeating the procedure you followed with xprop, of
course.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-15  1:25       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-10-15 20:14         ` Tollef Fog Heen
  2023-10-16  0:51           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Tollef Fog Heen @ 2023-10-15 20:14 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 66398

]] Po Lu 

> The window property printouts weren't very enlightening.  AFAICT the
> opacity is being reset to 1.0 when the frame is focused, but something
> promptly reverts it to its former value thereafter.

That's sounds pretty weird, doesn't it?

> Would you place a breakpoint on x_set_frame_alpha in xterm.c, more
> specifically:
> 
>   XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity,
> 		   XA_CARDINAL, 32, PropModeReplace,
> 		   (unsigned char *) &opac, 1);
> 
> configure it to print a backtrace each time it is hit, and post the
> output here?  Repeating the procedure you followed with xprop, of
> course.

There are two places where XChangeProperty is called in that function, I
put the backtrace on both, but only one seems to be hit after startup.

I did:
- start emacs under gdb, find the frame id, etc, pass that to xprop
- focus emacs frame
- unfocus emacs frame
- focus emacs frame
- M-x
- unfocus emacs frame, C-c in gdb

I assume you're not interested in the initial backtraces from when emacs
is starting up.

When the following backtraces start, emacs is getting focus.

Thread 1 "emacs" hit Breakpoint 1, x_set_frame_alpha (f=0x555556686198) at ./debian/build-src/src/xterm.c:6751
6751	  XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity,
#0  x_set_frame_alpha (f=0x555556686198) at ./debian/build-src/src/xterm.c:6751
#1  0x0000555555698167 in x_frame_highlight (f=<optimized out>) at ./debian/build-src/src/xterm.c:11490
#2  0x000055555569846c in xi_handle_focus_change (dpyinfo=0x55555653c290) at ./debian/build-src/src/xterm.c:12979
#3  0x00005555556a922f in handle_one_xevent (dpyinfo=dpyinfo@entry=0x55555653c290, event=event@entry=0x7fffffffc590, finish=finish@entry=0x555555d5b190 <current_finish>, hold_quit=0x7fffffffc800) at ./debian/build-src/src/xterm.c:21701
#4  0x00005555556af101 in event_handler_gdk (gxev=0x7fffffffc590, ev=<optimized out>, data=<optimized out>) at ./debian/build-src/src/xterm.c:17447
#5  0x00007ffff7591f5f in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#6  0x00007ffff759226a in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#7  0x00007ffff75383c4 in gdk_display_get_event () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#8  0x00007ffff7591ff6 in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#9  0x00007ffff6ea21b4 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff6ea52d7 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff6ea58f0 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff77fd919 in gtk_main_iteration () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#13 0x00005555556992b2 in XTread_socket (terminal=<optimized out>, hold_quit=0x7fffffffc800) at ./debian/build-src/src/xterm.c:24819
#14 0x00005555556e4241 in gobble_input () at ./debian/build-src/src/keyboard.c:7426
#15 0x00005555556e46a5 in handle_async_input () at ./debian/build-src/src/keyboard.c:7657
#16 process_pending_signals () at ./debian/build-src/src/keyboard.c:7671
#17 unblock_input_to (level=0) at ./debian/build-src/src/keyboard.c:7686
#18 unblock_input_to (level=<optimized out>) at ./debian/build-src/src/keyboard.c:7680
#19 0x00005555556e52bf in unblock_input () at ./debian/build-src/src/keyboard.c:7705
#20 timer_check () at ./debian/build-src/src/keyboard.c:4751
#21 0x00005555556e58a5 in readable_events (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:3533
#22 0x00005555556e5aa8 in get_input_pending (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:7376
#23 0x00005555556eab38 in detect_input_pending_run_timers (do_display=do_display@entry=true) at ./debian/build-src/src/keyboard.c:10906
#24 0x00005555557d31f1 in wait_reading_process_output (time_limit=time_limit@entry=0, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=<optimized out>, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>) at ./debian/build-src/src/process.c:5779
#25 0x00005555556e603e in kbd_buffer_get_event (end_time=<optimized out>, used_mouse_menu=<optimized out>, kbp=<synthetic pointer>) at ./debian/build-src/src/keyboard.c:4012
#26 read_event_from_main_queue (end_time=end_time@entry=0x0, local_getcjmp=local_getcjmp@entry=0x7fffffffd280, used_mouse_menu=used_mouse_menu@entry=0x7fffffffd58b) at ./debian/build-src/src/keyboard.c:2279
#27 0x00005555556ebd03 in read_decoded_event_from_main_queue (used_mouse_menu=<optimized out>, prev_event=<optimized out>, local_getcjmp=<optimized out>, end_time=<optimized out>) at ./debian/build-src/src/keyboard.c:2342
#28 read_char (commandflag=1, map=map@entry=0x555557df7e43, prev_event=0x0, used_mouse_menu=used_mouse_menu@entry=0x7fffffffd58b, end_time=end_time@entry=0x0) at ./debian/build-src/src/keyboard.c:2973
#29 0x00005555556ee155 in read_key_sequence (keybuf=keybuf@entry=0x7fffffffd6c0, prompt=prompt@entry=0x0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at ./debian/build-src/src/keyboard.c:10083
#30 0x00005555556f0035 in command_loop_1 () at ./debian/build-src/src/keyboard.c:1384
#31 0x000055555576e467 in internal_condition_case (bfun=bfun@entry=0x5555556efe70 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x5555556e2de0 <cmd_error>) at ./debian/build-src/src/eval.c:1474
#32 0x00005555556db37e in command_loop_2 (handlers=handlers@entry=0x90) at ./debian/build-src/src/keyboard.c:1133
#33 0x000055555576e3a9 in internal_catch (tag=tag@entry=0x10080, func=func@entry=0x5555556db350 <command_loop_2>, arg=arg@entry=0x90) at ./debian/build-src/src/eval.c:1197
#34 0x00005555556db311 in command_loop () at ./debian/build-src/src/keyboard.c:1111
#35 0x00005555556e2936 in recursive_edit_1 () at ./debian/build-src/src/keyboard.c:720
#36 0x00005555556e2ce4 in Frecursive_edit () at ./debian/build-src/src/keyboard.c:803
#37 0x00005555555aca8e in main (argc=1, argv=<optimized out>) at ./debian/build-src/src/emacs.c:2529
[Detaching after vfork from child process 4099344]

Thread 1 "emacs" hit Breakpoint 1, x_set_frame_alpha (f=f@entry=0x555556686198) at ./debian/build-src/src/xterm.c:6751
6751	  XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity,
#0  x_set_frame_alpha (f=f@entry=0x555556686198) at ./debian/build-src/src/xterm.c:6751
#1  0x0000555555698210 in x_frame_unhighlight (f=0x555556686198) at ./debian/build-src/src/xterm.c:11514
#2  x_frame_rehighlight (dpyinfo=0x55555653c290) at ./debian/build-src/src/xterm.c:13585
#3  0x000055555569846c in xi_handle_focus_change (dpyinfo=0x55555653c290) at ./debian/build-src/src/xterm.c:12979
#4  0x00005555556a8f2a in handle_one_xevent (dpyinfo=dpyinfo@entry=0x55555653c290, event=event@entry=0x7fffffffc720, finish=finish@entry=0x555555d5b190 <current_finish>, hold_quit=0x7fffffffc990) at ./debian/build-src/src/xterm.c:21712
#5  0x00005555556af101 in event_handler_gdk (gxev=0x7fffffffc720, ev=<optimized out>, data=<optimized out>) at ./debian/build-src/src/xterm.c:17447
#6  0x00007ffff7591f5f in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#7  0x00007ffff759226a in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#8  0x00007ffff75383c4 in gdk_display_get_event () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#9  0x00007ffff7591ff6 in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#10 0x00007ffff6ea21b4 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff6ea52d7 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff6ea58f0 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff77fd919 in gtk_main_iteration () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#14 0x00005555556992b2 in XTread_socket (terminal=<optimized out>, hold_quit=0x7fffffffc990) at ./debian/build-src/src/xterm.c:24819
#15 0x00005555556e4241 in gobble_input () at ./debian/build-src/src/keyboard.c:7426
#16 0x00005555556e46a5 in handle_async_input () at ./debian/build-src/src/keyboard.c:7657
#17 process_pending_signals () at ./debian/build-src/src/keyboard.c:7671
#18 unblock_input_to (level=0) at ./debian/build-src/src/keyboard.c:7686
#19 unblock_input_to (level=<optimized out>) at ./debian/build-src/src/keyboard.c:7680
#20 0x00005555556e52bf in unblock_input () at ./debian/build-src/src/keyboard.c:7705
#21 timer_check () at ./debian/build-src/src/keyboard.c:4751
#22 0x00005555556e58a5 in readable_events (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:3533
#23 0x00005555556e5aa8 in get_input_pending (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:7376
#24 0x00005555556eab38 in detect_input_pending_run_timers (do_display=do_display@entry=true) at ./debian/build-src/src/keyboard.c:10906
#25 0x00005555557d31f1 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>) at ./debian/build-src/src/process.c:5779
#26 0x00005555555b7bb4 in sit_for (timeout=timeout@entry=0x7a, reading=reading@entry=true, display_option=display_option@entry=1) at ./debian/build-src/src/dispnew.c:6264
#27 0x00005555556ed318 in read_char (commandflag=1, map=map@entry=0x555557df7e43, prev_event=0x0, used_mouse_menu=used_mouse_menu@entry=0x7fffffffd58b, end_time=end_time@entry=0x0) at ./debian/build-src/src/keyboard.c:2881
#28 0x00005555556ee155 in read_key_sequence (keybuf=keybuf@entry=0x7fffffffd6c0, prompt=prompt@entry=0x0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at ./debian/build-src/src/keyboard.c:10083
#29 0x00005555556f0035 in command_loop_1 () at ./debian/build-src/src/keyboard.c:1384
#30 0x000055555576e467 in internal_condition_case (bfun=bfun@entry=0x5555556efe70 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x5555556e2de0 <cmd_error>) at ./debian/build-src/src/eval.c:1474
#31 0x00005555556db37e in command_loop_2 (handlers=handlers@entry=0x90) at ./debian/build-src/src/keyboard.c:1133
#32 0x000055555576e3a9 in internal_catch (tag=tag@entry=0x10080, func=func@entry=0x5555556db350 <command_loop_2>, arg=arg@entry=0x90) at ./debian/build-src/src/eval.c:1197
#33 0x00005555556db311 in command_loop () at ./debian/build-src/src/keyboard.c:1111
#34 0x00005555556e2936 in recursive_edit_1 () at ./debian/build-src/src/keyboard.c:720
#35 0x00005555556e2ce4 in Frecursive_edit () at ./debian/build-src/src/keyboard.c:803
#36 0x00005555555aca8e in main (argc=1, argv=<optimized out>) at ./debian/build-src/src/emacs.c:2529
[Detaching after vfork from child process 4099348]
[Detaching after vfork from child process 4099352]

Thread 1 "emacs" hit Breakpoint 1, x_set_frame_alpha (f=0x555556686198) at ./debian/build-src/src/xterm.c:6751
6751	  XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity,
#0  x_set_frame_alpha (f=0x555556686198) at ./debian/build-src/src/xterm.c:6751
#1  0x0000555555698167 in x_frame_highlight (f=<optimized out>) at ./debian/build-src/src/xterm.c:11490
#2  0x000055555569846c in xi_handle_focus_change (dpyinfo=0x55555653c290) at ./debian/build-src/src/xterm.c:12979
#3  0x00005555556a922f in handle_one_xevent (dpyinfo=dpyinfo@entry=0x55555653c290, event=event@entry=0x7fffffffc590, finish=finish@entry=0x555555d5b190 <current_finish>, hold_quit=0x7fffffffc800) at ./debian/build-src/src/xterm.c:21701
#4  0x00005555556af101 in event_handler_gdk (gxev=0x7fffffffc590, ev=<optimized out>, data=<optimized out>) at ./debian/build-src/src/xterm.c:17447
#5  0x00007ffff7591f5f in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#6  0x00007ffff759226a in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#7  0x00007ffff75383c4 in gdk_display_get_event () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#8  0x00007ffff7591ff6 in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#9  0x00007ffff6ea21b4 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff6ea52d7 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff6ea58f0 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff77fd919 in gtk_main_iteration () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#13 0x00005555556992b2 in XTread_socket (terminal=<optimized out>, hold_quit=0x7fffffffc800) at ./debian/build-src/src/xterm.c:24819
#14 0x00005555556e4241 in gobble_input () at ./debian/build-src/src/keyboard.c:7426
#15 0x00005555556e46a5 in handle_async_input () at ./debian/build-src/src/keyboard.c:7657
#16 process_pending_signals () at ./debian/build-src/src/keyboard.c:7671
#17 unblock_input_to (level=0) at ./debian/build-src/src/keyboard.c:7686
#18 unblock_input_to (level=<optimized out>) at ./debian/build-src/src/keyboard.c:7680
#19 0x00005555556e52bf in unblock_input () at ./debian/build-src/src/keyboard.c:7705
#20 timer_check () at ./debian/build-src/src/keyboard.c:4751
#21 0x00005555556e58a5 in readable_events (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:3533
#22 0x00005555556e5aa8 in get_input_pending (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:7376
#23 0x00005555556eab38 in detect_input_pending_run_timers (do_display=do_display@entry=true) at ./debian/build-src/src/keyboard.c:10906
#24 0x00005555557d31f1 in wait_reading_process_output (time_limit=time_limit@entry=0, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=<optimized out>, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>) at ./debian/build-src/src/process.c:5779
#25 0x00005555556e603e in kbd_buffer_get_event (end_time=<optimized out>, used_mouse_menu=<optimized out>, kbp=<synthetic pointer>) at ./debian/build-src/src/keyboard.c:4012
#26 read_event_from_main_queue (end_time=end_time@entry=0x0, local_getcjmp=local_getcjmp@entry=0x7fffffffd280, used_mouse_menu=used_mouse_menu@entry=0x7fffffffd58b) at ./debian/build-src/src/keyboard.c:2279
#27 0x00005555556ebd03 in read_decoded_event_from_main_queue (used_mouse_menu=<optimized out>, prev_event=<optimized out>, local_getcjmp=<optimized out>, end_time=<optimized out>) at ./debian/build-src/src/keyboard.c:2342
#28 read_char (commandflag=1, map=map@entry=0x555557df7e43, prev_event=0x0, used_mouse_menu=used_mouse_menu@entry=0x7fffffffd58b, end_time=end_time@entry=0x0) at ./debian/build-src/src/keyboard.c:2973
#29 0x00005555556ee155 in read_key_sequence (keybuf=keybuf@entry=0x7fffffffd6c0, prompt=prompt@entry=0x0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at ./debian/build-src/src/keyboard.c:10083
#30 0x00005555556f0035 in command_loop_1 () at ./debian/build-src/src/keyboard.c:1384
#31 0x000055555576e467 in internal_condition_case (bfun=bfun@entry=0x5555556efe70 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x5555556e2de0 <cmd_error>) at ./debian/build-src/src/eval.c:1474
#32 0x00005555556db37e in command_loop_2 (handlers=handlers@entry=0x90) at ./debian/build-src/src/keyboard.c:1133
#33 0x000055555576e3a9 in internal_catch (tag=tag@entry=0x10080, func=func@entry=0x5555556db350 <command_loop_2>, arg=arg@entry=0x90) at ./debian/build-src/src/eval.c:1197
#34 0x00005555556db311 in command_loop () at ./debian/build-src/src/keyboard.c:1111
#35 0x00005555556e2936 in recursive_edit_1 () at ./debian/build-src/src/keyboard.c:720
#36 0x00005555556e2ce4 in Frecursive_edit () at ./debian/build-src/src/keyboard.c:803
#37 0x00005555555aca8e in main (argc=1, argv=<optimized out>) at ./debian/build-src/src/emacs.c:2529
[Detaching after vfork from child process 4099356]

Thread 1 "emacs" hit Breakpoint 1, x_set_frame_alpha (f=f@entry=0x555556686198) at ./debian/build-src/src/xterm.c:6751
6751	  XChangeProperty (dpy, win, dpyinfo->Xatom_net_wm_window_opacity,
#0  x_set_frame_alpha (f=f@entry=0x555556686198) at ./debian/build-src/src/xterm.c:6751
#1  0x0000555555698210 in x_frame_unhighlight (f=0x555556686198) at ./debian/build-src/src/xterm.c:11514
#2  x_frame_rehighlight (dpyinfo=0x55555653c290) at ./debian/build-src/src/xterm.c:13585
#3  0x000055555569846c in xi_handle_focus_change (dpyinfo=0x55555653c290) at ./debian/build-src/src/xterm.c:12979
#4  0x00005555556a8f2a in handle_one_xevent (dpyinfo=dpyinfo@entry=0x55555653c290, event=event@entry=0x7fffffffc720, finish=finish@entry=0x555555d5b190 <current_finish>, hold_quit=0x7fffffffc990) at ./debian/build-src/src/xterm.c:21712
#5  0x00005555556af101 in event_handler_gdk (gxev=0x7fffffffc720, ev=<optimized out>, data=<optimized out>) at ./debian/build-src/src/xterm.c:17447
#6  0x00007ffff7591f5f in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#7  0x00007ffff759226a in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#8  0x00007ffff75383c4 in gdk_display_get_event () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#9  0x00007ffff7591ff6 in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#10 0x00007ffff6ea21b4 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff6ea52d7 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff6ea58f0 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff77fd919 in gtk_main_iteration () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#14 0x00005555556992b2 in XTread_socket (terminal=<optimized out>, hold_quit=0x7fffffffc990) at ./debian/build-src/src/xterm.c:24819
#15 0x00005555556e4241 in gobble_input () at ./debian/build-src/src/keyboard.c:7426
#16 0x00005555556e46a5 in handle_async_input () at ./debian/build-src/src/keyboard.c:7657
#17 process_pending_signals () at ./debian/build-src/src/keyboard.c:7671
#18 unblock_input_to (level=0) at ./debian/build-src/src/keyboard.c:7686
#19 unblock_input_to (level=<optimized out>) at ./debian/build-src/src/keyboard.c:7680
#20 0x00005555556e52bf in unblock_input () at ./debian/build-src/src/keyboard.c:7705
#21 timer_check () at ./debian/build-src/src/keyboard.c:4751
#22 0x00005555556e58a5 in readable_events (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:3533
#23 0x00005555556e5aa8 in get_input_pending (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:7376
#24 0x00005555556eab38 in detect_input_pending_run_timers (do_display=do_display@entry=true) at ./debian/build-src/src/keyboard.c:10906
#25 0x00005555557d31f1 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>) at ./debian/build-src/src/process.c:5779
#26 0x00005555555b7bb4 in sit_for (timeout=timeout@entry=0x7a, reading=reading@entry=true, display_option=display_option@entry=1) at ./debian/build-src/src/dispnew.c:6264
#27 0x00005555556ed318 in read_char (commandflag=1, map=map@entry=0x5555582eae03, prev_event=0x0, used_mouse_menu=used_mouse_menu@entry=0x7fffffffd58b, end_time=end_time@entry=0x0) at ./debian/build-src/src/keyboard.c:2881
#28 0x00005555556ee155 in read_key_sequence (keybuf=keybuf@entry=0x7fffffffd6c0, prompt=prompt@entry=0x0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at ./debian/build-src/src/keyboard.c:10083
#29 0x00005555556f0035 in command_loop_1 () at ./debian/build-src/src/keyboard.c:1384
#30 0x000055555576e467 in internal_condition_case (bfun=bfun@entry=0x5555556efe70 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x5555556e2de0 <cmd_error>) at ./debian/build-src/src/eval.c:1474
#31 0x00005555556db37e in command_loop_2 (handlers=handlers@entry=0x90) at ./debian/build-src/src/keyboard.c:1133
#32 0x000055555576e3a9 in internal_catch (tag=tag@entry=0x10080, func=func@entry=0x5555556db350 <command_loop_2>, arg=arg@entry=0x90) at ./debian/build-src/src/eval.c:1197
#33 0x00005555556db311 in command_loop () at ./debian/build-src/src/keyboard.c:1111
#34 0x00005555556e2936 in recursive_edit_1 () at ./debian/build-src/src/keyboard.c:720
#35 0x00005555556e2ce4 in Frecursive_edit () at ./debian/build-src/src/keyboard.c:803
#36 0x00005555555aca8e in main (argc=1, argv=<optimized out>) at ./debian/build-src/src/emacs.c:2529
[Detaching after vfork from child process 4099360]
[Detaching after vfork from child process 4099365]
[Detaching after vfork from child process 4099369]

xprop, including the initial dump:

_NET_WM_USER_TIME(CARDINAL) = 1518470735
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 1073, 1057
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		bitmap id # to use for icon: 0x5a001fb
		bitmap id # of mask for icon: 0x5a00201
		window id # of group leader: 0x5a00001
_GTK_THEME_VARIANT(UTF8_STRING) = 
_NET_WM_ICON(CARDINAL) = 	Icon (48 x 48):
	                                                
	                    ░░░▒▒░░░                    
	                ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒                 
	              ░▒▒▒▒░░░░░░░░░▒▒▒▒▒░              
	            ░▒▒▒░░░░░░░░░░░░░░░▒▒▒▒░            
	           ▒▒▒░░░░░░░░░░░░░░░░░░░▒▒▒▒           
	         ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒          
	        ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░        
	       ░▒▒░░░░░░░░░░░░░░░       ░▒▒▒▒▒▒▓        
	      ░▒▒░░░░░░░░░░░░░           ░▒▒▒▒▒▒▒       
	      ▒▒░░░░░░░░░░░░░░░░░░░░░    ░▒▒▒▒▒▒▒▒      
	     ▒▒░░░░░░░░░░░░░░░░░░░░░      ▒▒▒▒▒▒▒▒▒     
	    ░▒░░░░░░░░░░░░░░░            ░▒▒▒▒▒▒▒▒▓     
	    ▒▒░░░░░░░░░                  ░▒▒▒▒▒▒▒▒▒▒    
	   ░▒░░░░░░░░░                 ░▒▒▒▒▒▒▒▒▒▒▒▓    
	   ▒▒░░░░░░░░         ░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒   
	   ▒░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓   
	  ▒▒░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░  
	  ▒▒░░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
	  ▒▒░░░░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	  ▒░░░░░░░░░░░▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	 ░▒░░░░░░░░░░▒▒▒▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	 ░▒░░░░░░░░░▒▒▒▒▒▒▒░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
	 ░▒░░░░░░░▒▒▒▒▒░░             ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
	 ░▒░░░░░░▒▒▒▒░             ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
	 ░▒░░░░░▒▒▒░           ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
	 ░▒░░░▒▒▒▒░          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	 ░▒░░▒▒▒▒░         ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	  ▓▒▒▒▒▒▒░        ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	  ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
	  ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░  
	  ░▒▒▒▒▒▒▒        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓   
	   ▒▒▒▒▒▒▒▒░         ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒   
	   ░▒▒▒▒▒▒▒▒░                     ░░▒▒▒▒▒▒▒▓░   
	    ▒▒▒▒▒▒▒▒▒▒░░                    ░▒▒▒▒▒▒▒    
	    ░▒▒▒▒▒▒▒▒▒▒▒▒▒░░                ▒▒▒▒▒▒▓░    
	     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░     ░▒▒▒▒▒▒▓▒     
	      ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░      ░░▒▒▒▒▒▒▒▒▓      
	      ░▓▒▒▒▒▒▒▒▒▒▒▒░░      ░░▒▒▒▒▒▒▒▒▒▒▒▓       
	       ░▓▒▒▒▒▒▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░       
	        ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░        
	         ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░         
	          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒           
	            ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░            
	              ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒              
	                ░▒▓▓▒▒▒▒▒▒▒▓▓▓▒░                
	                   ░░▒▒▒▒▒▒░░                   
	                                                


XdndAware(ATOM) = BITMAP
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 94372170, 94372171
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x5a00149
WM_CLIENT_LEADER(WINDOW): window id # 0x5a00001
_NET_WM_PID(CARDINAL) = 4098519
WM_LOCALE_NAME(STRING) = "nb_NO.UTF-8"
WM_CLIENT_MACHINE(STRING) = "xoog"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified minimum size: 24 by 17
		program specified resize increment: 8 by 17
		program specified base size: 24 by 17
		window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "emacs", "Emacs"
WM_ICON_NAME(STRING) = "*scratch* "
_NET_WM_ICON_NAME(UTF8_STRING) = "*scratch* "
WM_NAME(STRING) = "*scratch* "
_NET_WM_NAME(UTF8_STRING) = "*scratch* "
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_USER_TIME(CARDINAL) = 1518520949
_NET_WM_USER_TIME(CARDINAL) = 1518520949
_NET_WM_USER_TIME(CARDINAL) = 1518521663
_NET_WM_USER_TIME(CARDINAL) = 1518521663
_NET_WM_ICON(CARDINAL) = 	Icon (48 x 48):
	                                                
	                    ░░░▒▒░░░                    
	                ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒                 
	              ░▒▒▒▒░░░░░░░░░▒▒▒▒▒░              
	            ░▒▒▒░░░░░░░░░░░░░░░▒▒▒▒░            
	           ▒▒▒░░░░░░░░░░░░░░░░░░░▒▒▒▒           
	         ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒          
	        ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░        
	       ░▒▒░░░░░░░░░░░░░░░       ░▒▒▒▒▒▒▓        
	      ░▒▒░░░░░░░░░░░░░           ░▒▒▒▒▒▒▒       
	      ▒▒░░░░░░░░░░░░░░░░░░░░░    ░▒▒▒▒▒▒▒▒      
	     ▒▒░░░░░░░░░░░░░░░░░░░░░      ▒▒▒▒▒▒▒▒▒     
	    ░▒░░░░░░░░░░░░░░░            ░▒▒▒▒▒▒▒▒▓     
	    ▒▒░░░░░░░░░                  ░▒▒▒▒▒▒▒▒▒▒    
	   ░▒░░░░░░░░░                 ░▒▒▒▒▒▒▒▒▒▒▒▓    
	   ▒▒░░░░░░░░         ░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒   
	   ▒░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓   
	  ▒▒░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░  
	  ▒▒░░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
	  ▒▒░░░░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	  ▒░░░░░░░░░░░▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	 ░▒░░░░░░░░░░▒▒▒▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	 ░▒░░░░░░░░░▒▒▒▒▒▒▒░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
	 ░▒░░░░░░░▒▒▒▒▒░░             ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
	 ░▒░░░░░░▒▒▒▒░             ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
	 ░▒░░░░░▒▒▒░           ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
	 ░▒░░░▒▒▒▒░          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	 ░▒░░▒▒▒▒░         ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	  ▓▒▒▒▒▒▒░        ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
	  ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
	  ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░  
	  ░▒▒▒▒▒▒▒        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓   
	   ▒▒▒▒▒▒▒▒░         ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒   
	   ░▒▒▒▒▒▒▒▒░                     ░░▒▒▒▒▒▒▒▓░   
	    ▒▒▒▒▒▒▒▒▒▒░░                    ░▒▒▒▒▒▒▒    
	    ░▒▒▒▒▒▒▒▒▒▒▒▒▒░░                ▒▒▒▒▒▒▓░    
	     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░     ░▒▒▒▒▒▒▓▒     
	      ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░      ░░▒▒▒▒▒▒▒▒▓      
	      ░▓▒▒▒▒▒▒▒▒▒▒▒░░      ░░▒▒▒▒▒▒▒▒▒▒▒▓       
	       ░▓▒▒▒▒▒▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░       
	        ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░        
	         ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░         
	          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒           
	            ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░            
	              ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒              
	                ░▒▓▓▒▒▒▒▒▒▒▓▓▓▒░                
	                   ░░▒▒▒▒▒▒░░                   
	                                                


WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		bitmap id # to use for icon: 0x5a00208
		bitmap id # of mask for icon: 0x5a0020e
		window id # of group leader: 0x5a00001
_NET_WM_NAME(UTF8_STRING) = " *Minibuf-1* "
WM_NAME(STRING) = " *Minibuf-1* "
_NET_WM_ICON_NAME(UTF8_STRING) = " *Minibuf-1* "
WM_ICON_NAME(STRING) = " *Minibuf-1* "
WM_ICON_NAME(STRING) = " *Minibuf-1* "
_NET_WM_ICON_NAME(UTF8_STRING) = " *Minibuf-1* "
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
_NET_WM_USER_TIME(CARDINAL) = 1518522085
_NET_WM_USER_TIME(CARDINAL) = 1518522085
_NET_WM_USER_TIME(CARDINAL) = 1518522373
_NET_WM_USER_TIME(CARDINAL) = 1518522373
_NET_WM_NAME(UTF8_STRING) = "*scratch* "
WM_NAME(STRING) = "*scratch* "
_NET_WM_ICON_NAME(UTF8_STRING) = "*scratch* "
WM_ICON_NAME(STRING) = "*scratch* "
WM_ICON_NAME(STRING) = "*scratch* "
_NET_WM_ICON_NAME(UTF8_STRING) = "*scratch* "
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_WINDOW_OPACITY(CARDINAL) = 3435973836
_NET_WM_WINDOW_OPACITY(CARDINAL) = 4294967295


-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-15 20:14         ` Tollef Fog Heen
@ 2023-10-16  0:51           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-10-16  4:42             ` Tollef Fog Heen
  0 siblings, 1 reply; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-10-16  0:51 UTC (permalink / raw)
  To: Tollef Fog Heen; +Cc: Eli Zaretskii, 66398

Tollef Fog Heen <tfheen@err.no> writes:

> There are two places where XChangeProperty is called in that function, I
> put the backtrace on both, but only one seems to be hit after startup.
>
> I did:
> - start emacs under gdb, find the frame id, etc, pass that to xprop
> - focus emacs frame
> - unfocus emacs frame
> - focus emacs frame
> - M-x
> - unfocus emacs frame, C-c in gdb
>
> I assume you're not interested in the initial backtraces from when emacs
> is starting up.

Oh, I see, thanks.  Please test the attached patch:

diff --git a/src/xterm.c b/src/xterm.c
index 517bdf57aab..5d491e63778 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11820,7 +11820,9 @@ x_frame_highlight (struct frame *f)
   x_stop_ignoring_errors (dpyinfo);
   unblock_input ();
   gui_update_cursor (f, true);
-  x_set_frame_alpha (f);
+
+  if (!FRAME_X_OUTPUT (f)->alpha_identical_p)
+    x_set_frame_alpha (f);
 }
 
 static void
@@ -11844,7 +11846,15 @@ x_frame_unhighlight (struct frame *f)
   unblock_input ();
 
   gui_update_cursor (f, true);
-  x_set_frame_alpha (f);
+
+  /* Eschew modifying the frame alpha when the alpha values for
+     focused and background frames are identical; otherwise, this will
+     upset the order in which changes to the alpha property
+     immediately subsequent to a focus change are propagated into a
+     frame's alpha property.  (bug#66398) */
+
+  if (!FRAME_X_OUTPUT (f)->alpha_identical_p)
+    x_set_frame_alpha (f);
 }
 
 /* The focus has changed.  Update the frames as necessary to reflect





^ permalink raw reply related	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-16  0:51           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-10-16  4:42             ` Tollef Fog Heen
  2023-10-16  4:44               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Tollef Fog Heen @ 2023-10-16  4:42 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 66398

]] Po Lu 

> Oh, I see, thanks.  Please test the attached patch:

With the patch, I am no longer able to reproduce the problem.  Thanks
for the help fixing this problem!

Regards,
-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-16  4:42             ` Tollef Fog Heen
@ 2023-10-16  4:44               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-10-16 11:51                 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-10-16  4:44 UTC (permalink / raw)
  To: Tollef Fog Heen; +Cc: Eli Zaretskii, 66398

Tollef Fog Heen <tfheen@err.no> writes:

> ]] Po Lu 
>
>> Oh, I see, thanks.  Please test the attached patch:
>
> With the patch, I am no longer able to reproduce the problem.  Thanks
> for the help fixing this problem!
>
> Regards,

Thanks.  Eli, is this safe for Emacs 29?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-16  4:44               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-10-16 11:51                 ` Eli Zaretskii
  2023-10-17  0:34                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2023-10-16 11:51 UTC (permalink / raw)
  To: Po Lu; +Cc: tfheen, 66398

> From: Po Lu <luangruo@yahoo.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,  66398@debbugs.gnu.org
> Date: Mon, 16 Oct 2023 12:44:05 +0800
> 
> Tollef Fog Heen <tfheen@err.no> writes:
> 
> > ]] Po Lu 
> >
> >> Oh, I see, thanks.  Please test the attached patch:
> >
> > With the patch, I am no longer able to reproduce the problem.  Thanks
> > for the help fixing this problem!
> >
> > Regards,
> 
> Thanks.  Eli, is this safe for Emacs 29?

I guess so, thanks.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur
  2023-10-16 11:51                 ` Eli Zaretskii
@ 2023-10-17  0:34                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-10-17  0:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: tfheen, 66398-done

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: Eli Zaretskii <eliz@gnu.org>,  66398@debbugs.gnu.org
>> Date: Mon, 16 Oct 2023 12:44:05 +0800
>> 
>> Tollef Fog Heen <tfheen@err.no> writes:
>> 
>> > ]] Po Lu 
>> >
>> >> Oh, I see, thanks.  Please test the attached patch:
>> >
>> > With the patch, I am no longer able to reproduce the problem.  Thanks
>> > for the help fixing this problem!
>> >
>> > Regards,
>> 
>> Thanks.  Eli, is this safe for Emacs 29?
>
> I guess so, thanks.

Now done, closing, and thanks.





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-10-17  0:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-07 20:07 bug#66398: 29.1; Buggy handling of transparency changes / blur/unblur Tollef Fog Heen
2023-10-14  8:13 ` Eli Zaretskii
2023-10-14  8:23   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-14 17:31     ` Tollef Fog Heen
2023-10-15  1:25       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-15 20:14         ` Tollef Fog Heen
2023-10-16  0:51           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-16  4:42             ` Tollef Fog Heen
2023-10-16  4:44               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-16 11:51                 ` Eli Zaretskii
2023-10-17  0:34                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).