GNU bug report logs - #55497
29.0.50; Emacs Windows unidentified in Wayland (correct bug-report)

Previous Next

Package: emacs;

Reported by: Julien Cubizolles <j.cubizolles <at> free.fr>

Date: Wed, 18 May 2022 08:55:01 UTC

Severity: normal

Merged with 55496

Found in version 29.0.50

Full log


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

From: Julien Cubizolles <j.cubizolles <at> free.fr>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 55497 <at> debbugs.gnu.org
Subject: Re: bug#55497: 29.0.50; Emacs Windows unidentified in Wayland
 (correct bug-report)
Date: Thu, 19 May 2022 09:16:47 +0200
Po Lu <luangruo <at> yahoo.com> writes:

> Julien Cubizolles <j.cubizolles <at> free.fr> writes:
>
>> I just realized that something wasn't clear in my bug-report. The frame
>> does have a name, that can be changed with emacs -Q -T "Hello" for
>> instance. This name is displayed by the windows manager when
>> browsing through all open windows with Alt-Tab.
>>
>> However its icon is the generic one used for unidentified applications,
>> even though there is a desktop file for Emacs windows which is used when
>> running older versions of Emacs.
>
> Hmm.  Could you put a breakpoint on `xg_set_icon_from_xpm_data' (the
> version in pgtkfns.c) and see if it's ever hit?

I have no experience in C programming. Don't know if I did the right
thing: I added a print and return in this function:

--8<---------------cut here---------------start------------->8---
xg_set_icon_from_xpm_data (struct frame *f, const char **data)
{
  GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data (data);

  printf("Got into xg_set_icon_from_xpm_data.\n");
  return 1;
  if (!pixbuf)
    return false;
  
  if (!FRAME_GTK_OUTER_WIDGET (f))
    return false;
  
  gtk_window_set_icon (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), pixbuf);
  g_object_unref (pixbuf);
  return true;
}
--8<---------------cut here---------------end--------------->8---

and built emacs from git after ./configure --with-pgtk
. Emacs -Q didn't print the message nor dit it
break. It doesn't seem to get to this function.

-- 
Julien Cubizolles




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

Previous Next


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