GNU bug report logs - #41719
28.0.50; emacsclient -c -F '((name . "NAME"))' is not respected --with-x-toolkit=gtk3

Previous Next

Package: emacs;

Reported by: Vladimir Lomov <lomov.vl <at> yandex.ru>

Date: Fri, 5 Jun 2020 03:11:02 UTC

Severity: wishlist

Tags: moreinfo

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Dmitry Alexandrov <dag <at> gnui.org>
To: Vladimir Lomov <lomov.vl <at> yandex.ru>
Cc: 41719 <at> debbugs.gnu.org
Subject: Re: bug#41719: 28.0.50; emacsclient -c -F '((name . "NAME"))' is
 not respected --with-x-toolkit=gtk3
Date: Sun, 07 Jun 2020 19:15:40 +0300
[Message part 1 (text/plain, inline)]
Vladimir Lomov <lomov.vl <at> yandex.ru> wrote:
> So, emacsclient with -F

(make-frame '((name . "NAME"))), actually.

> should change 'instance' but when Emacs is build with GTK/GTK3 emacs doesn't change it. Do I correctly understand this?

Only with GTK3.  GTK2 is fine as well.

> Is it mean that this is a bug?

If a missing feature, that is present on a slightly different platform, is a bug.  Itʼs not necessary a bug in Emacs, though.  Maybe, besides declaring a ability to set a window class deprecated [1], GTK developers had actually broken it.


[1] <https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-wmclass>:

|	gtk_window_set_wmclass has been deprecated since version 3.22 and should not be used in newly-written code.
|
| Don’t use this function. It sets the X Window System “class” and “name” hints for a window. According to the ICCCM, you should always set these to the same value for all windows in an application, and GTK+ sets them to that value by default, so calling this function is sort of pointless. However, you may want to call gtk_window_set_role() on each window in your application, for the benefit of the session manager. Setting the role allows the window manager to restore window positions when loading a saved session.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 59 days ago.

Previous Next


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