GNU bug report logs - #79098
31.0.50; quit-window raises frame, steals focus

Previous Next

Package: emacs;

Reported by: Óscar Fuentes <oscarfv <at> eclipso.eu>

Date: Fri, 25 Jul 2025 21:20:02 UTC

Severity: normal

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Óscar Fuentes <oscarfv <at> eclipso.eu>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; quit-window raises frame, steals focus
Date: Fri, 25 Jul 2025 23:18:46 +0200
emacs -Q

Split window so window 1 shows *scratch* and window 2 shows *Messages*

Eval this in *scratch* and, before 5 seconds, switch the focus to some
other application's frame that obscures Emacs' frame:

(run-with-timer
 5 nil
 (lambda ()
   (quit-window nil (other-window-for-scrolling))))

When the timer executes, Emacs' frame will be raised and given focus.

Something similar happens in MSWindows, so this is not an artifact
specific to my desktop manager (KDE 6.3 on my case.)


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.18.4) of 2025-07-25 built on sky
Repository revision: 33161e51e539eadeb11282c06df73a5d76afdff2
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: Debian GNU/Linux 13 (trixie)

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

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

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





This bug report was last modified 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.