emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61337: closed (29.0.60; Setting frame-title-format makes Emacs to st


From: GNU bug Tracking System
Subject: bug#61337: closed (29.0.60; Setting frame-title-format makes Emacs to steal focus)
Date: Mon, 13 Feb 2023 16:03:01 +0000

Your message dated Mon, 13 Feb 2023 17:02:48 +0100
with message-id <874jrpsgd3.fsf@telefonica.net>
and subject line Re: bug#61337: 29.0.60; Setting frame-title-format makes Emacs 
to steal focus
has caused the debbugs.gnu.org bug report #61337,
regarding 29.0.60; Setting frame-title-format makes Emacs to steal focus
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
61337: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61337
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 29.0.60; Setting frame-title-format makes Emacs to steal focus Date: Tue, 07 Feb 2023 06:07:51 +0100
This is on KDE with two desktops.

Let's suppose that we are on Desktop1. On xterm, for instance:

$ emacs -Q

Eval this on *scratch*:

(setq frame-title-format "hello")

Click somewhere on Emacs' frame to update its displayed title.

Set focus to xterm, switch to Desktop2 and back to Desktop1. Focus is on
Emacs' frame. The z-order is not altered.

After bisecting:

commit e99f41f03a97641ee05ba4a27f8b91c190f55df1
Author: Po Lu <luangruo@yahoo.com>
Date:   Thu Jun 9 21:48:19 2022 +0800

    Fix recalculation of `icon-title-format' after a frame is iconified
    
    Previously it would only happen upon the next mode line
    redisplay, meaning that just pressing C-z would not update the
    implicit title, since C-z doesn't cause a redisplay.
    
    * src/dispextern.h: Update prototypes.
    * src/frame.h (SET_FRAME_ICONIFIED): De-slugify.  Call
    `gui_consider_frame_title', since `icon-title-format' might be
    different from the current frame title.
    * src/xdisp.c (gui_consider_frame_title): Export (also in
    dispextern.h).  (bug#55850)

I checked that reverting this commit fixes the problem.


In GNU Emacs 29.0.60 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.16.0) of 2023-02-07 built on sky
Repository revision: 746748f5c283b98a221571e725833affe304a748
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12101006
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure --without-toolkit-scroll-bars --with-x-toolkit=lucid
 --with-modules --without-imagemagick'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND THREADS TIFF TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2
XPM LUCID ZLIB

Important settings:
  value of $LANG: es_ES.UTF-8
  locale-coding-system: utf-8-unix



--- End Message ---
--- Begin Message --- Subject: Re: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus Date: Mon, 13 Feb 2023 17:02:48 +0100 User-agent: Gnus/5.13 (Gnus v5.13)
Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:

> I would recommend saying:
>
>   Window in another desktop ends up focused upon returning to that
>   desktop if it changes WM_NAME and _NET_WM_NAME while in an iconic
>   state.

Indeed, that's what KDE does in certain conditions (see details on the
KDE bug report (1)). I made a reproducer that does not require Emacs.

Later I will open a bug report about the default value of
icon-title-format. Now closing this one.

Thank you.

1. https://bugs.kde.org/show_bug.cgi?id=465530#c13


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]