GNU bug report logs -
#58945
29.0.50; Setting frame name in pgtk Emacs is asynchronous
Previous Next
Reported by: Thibault Polge <thibault <at> thb.lt>
Date: Tue, 1 Nov 2022 14:59:01 UTC
Severity: normal
Tags: notabug
Found in version 29.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
In pgtk Emacs (built from a very recent git HEAD), running under the
Sway window manager, setting a frame name like this:
(set-frame-parameter (selected-frame) 'name "Some new name")
(redisplay t)
Doesn't immediately take effect.
The example program below demonstrates this by triggering a race
condition: it renames all frames, then immediately requests the state of
the Sway window manager, and renames them back. Repeatedly eval'ing the
final sexp randomly returns either the original or the renamed frame
names. (When testing with a few frames, it never returned a mix of
original or renamed names --- it's 100% one or the other)
This is an issue because frame names is the only way to associate Emacs
frames with Sway identifiers (or any wayland wm) on pgtk Emacs).
MWE code follows.
Best regards,
Thibault
[mwe.el (application/emacs-lisp, inline)]
This bug report was last modified 2 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.