Subject: bug#19403: 25.0.50; GTK - emacs icon missing on new frames

From: Matt Lundin <[email-masked]>
Date: Wed, 17 Dec 2014 18:28:22 -0600

On archlinux with the openbox window manager, I start development emacs
(compiled with --with-xtoolkit=gtk3)...

/usr/bin/emacs -Q

The first frame opened has the emacs icon. But if I open a new frame
with...

C-x 5 2 (make-frame-command)

...the emacs icon is missing.

Emacs 24.4 does not exhibit this behavior.

For reference, I called xprop on each of the frames.

Here is the output for the first frame:

--8<---------------cut here---------------start------------->8---
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
XdndAware(ATOM) = BITMAP
_NET_WM_ICON_GEOMETRY(CARDINAL) = 585, 764, 81, 20
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 1
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _OB_WM_ACTION_UNDECORATE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 1, 1, 22, 4
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 22, 4
_NET_WM_STATE(ATOM) = 
_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "emacs@archbook"
_OB_APP_GROUP_CLASS(UTF8_STRING) = "Emacs"
_OB_APP_GROUP_NAME(UTF8_STRING) = "emacs"
_OB_APP_CLASS(UTF8_STRING) = "Emacs"
_OB_APP_NAME(UTF8_STRING) = "emacs"
_OB_APP_ROLE(UTF8_STRING) = 
_NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = "*scratch*"
_NET_WM_VISIBLE_NAME(UTF8_STRING) = "*scratch*"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		bitmap id # to use for icon: 0x360001e
		bitmap id # of mask for icon: 0x3600029
		window id # of group leader: 0x3600001
_NET_WM_ICON(CARDINAL) = 	Icon (48 x 48):
	                 ░░░▒▒▒▒▒░░                     
	              ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                  
	            ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                
	          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░              
	         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░            
	        ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░▒▒▒░           
	       ▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░        ░▒▒░          
	      ▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░     ░▒▒░         
	     ▒▒▒▒▒▒▒▒▒░     ░░░░░░░░░▒▒     ▒▒▒░        
	    ▒▒▒▒▒▒▒▒▒░               ░      ░▒▒▒        
	   ░▒▒▒▒▒▒▒▒▒░                      ░▒▒▒▒       
	   ▒▒▒▒▒▒▒▒▒▒░                      ░▒▒▒▒░      
	  ░▒▒▒▒▒▒▒▒▒▒░                     ░▒▒▒▒▒▒      
	  ▒▒▒▒▒▒▒▒▒▒░░░     ░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░     
	 ░▒▒▒▒▒▒▒▒▒▒░░░░     ░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒░    
	 ▒▒▒▒▒▒▒▒▒▒▒░░░░░     ░░░░░░░░░░▒▒▒▒▒▒▒▒▒▓░▒    
	 ▒▒▒▒▒▒▒▒▒▒▒▒░░░░░     ░░░░░░░░░▒▒▒▒▒▒▒▒▓░▓▒    
	 ▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░     ░░░░░░░▒▒▒▒▒▒▒▒▓▒▒▒▒    
	░▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░     ░░░░░░▒▒▒▒▒▒▒▒▒▒▒▓▒    
	░▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░    ░░░░▒▒▒▒▒▒▒▒▒░▒▓▓▒    
	▒▒▒▒▒▒▒▒▒▒░░                ░▒▒▒▒▒▒▒▒▒░▒▓▓▒▒    
	▒▒▒▒▒▒▒▒░                    ░▒▒▒▒▒▓▒░▒▓▓▒▒▒    
	▒▒▒▒▒▒▒                       ░▒▒▒▓▒░▒▓▓▒▒▒▒    
	▒▒▒▒▒▒░               ░░░░░░░░▒▒▒▒▒░▒▓▓▒▒▒▒▒    
	▒▒▒▒▒▒           ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▓▓▓▒▒▒▒▒    
	░▒▒▒▒▒         ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▓▓▓▒▒▒▒▒▒    
	░▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▒▒▒▒▒▒▒    
	 ▒▒▒▒▒▒       ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▓▓▓▒▒▒▒▒▒▒░    
	 ▒▒▒▒▒▒░       ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▒▓▓▓▒▒▒▒▒▒▒▒░    
	 ░▒▒▒▒▒▒░       ░▒▒▒▒░░░▒▒▒▒▓▒▒▓▓▓▒▒▒▒▒▒▒▒▒     
	 ░▒▒▒▒▒▒▒▒        ░░░░░░░░░▒▓▒▓▓▓▒▒▒▒▒▒▒▒▒▒     
	  ▒▒▒▒▒▒▒▒▒░         ░░░░░▒▓▒▓▓▓▓▒▒▒▒▒▒▒▒▒░     
	  ░▒▒▒▒▒▒▒▒▒▒░           ░▓▒▓▓▓▓▒▒▒▒▒▒▒▒▒▒      
	   ▒▒▒▒▒▒▒▒▒▒▒▒░         ▒▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒░      
	   ░▒▒▒▒▒▒▒▒▒▒▒▒░░░     ▒▓▓▓▓▒  ░▒▒▒▒▒▒▒░       
	    ░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░▓▓▓▓▒    ░▒▒▒▒▒▒        
	     ▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░▓░▓▓▒      ▒▒▒▒▒         
	      ▒▒▒▒▒▒░░        ▓▓▓▒▒      ░▒▒▒▒░         
	       ▒▒▒▒▒▒▒▒▒▒▒░░░▒▓▓▓▓░░░░▒▒▒▒▒▒▒░          
	        ▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒░           
	         ░▒▒▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒             
	         ░░▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒░             
	      ░░░░░░▒▒▒▒▒▒▒▓▓▓▒▒▒▒▒▒▒▒▒▒░░░░░           
	      ░░░░░▒▒▒▒▒▒▒▓▓▓▒▒▒▒▒▒▒▒▒▒▒░░░░░░          
	       ░░░░░░▒▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒▒▒░░░░░░           
	          ░░░░░░░▒▒░░░░░░░░░░░░░░░              

_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 752, 697
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 56623126, 56623127
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x3600015
WM_CLIENT_LEADER(WINDOW): window id # 0x3600001
_NET_WM_PID(CARDINAL) = 26281
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "archbook"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified minimum size: 41 by 85
		program specified resize increment: 9 by 18
		program specified base size: 41 by 85
		window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "emacs", "Emacs"
WM_ICON_NAME(STRING) = "*scratch*"
_NET_WM_ICON_NAME(UTF8_STRING) = "*scratch*"
WM_NAME(STRING) = "*scratch*"
_NET_WM_NAME(UTF8_STRING) = "*scratch*"
--8<---------------cut here---------------end--------------->8---

And here is the output for the second frame (with the generic openbox icon):

--8<---------------cut here---------------start------------->8---
_NET_WM_USER_TIME(CARDINAL) = 14891725
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
XdndAware(ATOM) = BITMAP
_NET_WM_ICON_GEOMETRY(CARDINAL) = 667, 764, 81, 20
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 1
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _OB_WM_ACTION_UNDECORATE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 1, 1, 22, 4
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 22, 4
_NET_WM_STATE(ATOM) = 
_NET_WM_ICON(CARDINAL) = 	Icon (48 x 48):

	  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
	  ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒  
	  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
	  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
	  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
	  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
	  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
	  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
	  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
	  ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒  
	  ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒  
	  ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒  
	  ▒                                          ▒  
	  ░                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ▒                                          ▒  
	  ░                                          ▒  
	  ░                                          ▒  
	  ░                                          ░  
	  ░                                          ▒  
	  ▒                                          ▒  
	  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
	  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
	  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
	  ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  
	     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    

_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "emacs@archbook"
_OB_APP_GROUP_CLASS(UTF8_STRING) = "Emacs"
_OB_APP_GROUP_NAME(UTF8_STRING) = "emacs"
_OB_APP_CLASS(UTF8_STRING) = "Emacs"
_OB_APP_NAME(UTF8_STRING) = "emacs"
_OB_APP_ROLE(UTF8_STRING) = 
_NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = " *Minibuf-1*"
_NET_WM_VISIBLE_NAME(UTF8_STRING) = " *Minibuf-1*"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		window id # of group leader: 0x3600001
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 752, 697
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 56623232, 56623233
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x360007f
WM_CLIENT_LEADER(WINDOW): window id # 0x3600001
_NET_WM_PID(CARDINAL) = 26281
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "archbook"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified minimum size: 41 by 85
		program specified resize increment: 9 by 18
		program specified base size: 41 by 85
		window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "emacs", "Emacs"
WM_ICON_NAME(STRING) = " *Minibuf-1*"
_NET_WM_ICON_NAME(UTF8_STRING) = " *Minibuf-1*"
WM_NAME(STRING) = " *Minibuf-1*"
_NET_WM_NAME(UTF8_STRING) = " *Minibuf-1*"
--8<---------------cut here---------------end--------------->8---

In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.6)
 of 2014-12-17 on archbook
Repository revision: ec10ba2792eef613caf47fff83e869d4bc177616
Windowing system distributor `The X.Org Foundation', version 11.0.11602901
Configured using:
 `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --mandir=/usr/share/man
 --pdfdir=/usr/share/doc/emacs/pdf --with-sound=alsa --without-gconf
 --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic
 -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
 CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

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

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message dired format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

Memory information:
((conses 16 75635 3862)
 (symbols 48 18032 0)
 (miscs 40 46 99)
 (strings 32 11267 4171)
 (string-bytes 1 299711)
 (vectors 16 9517)
 (vector-slots 8 399827 12268)
 (floats 8 75 58)
 (intervals 56 207 19)
 (buffers 976 12)
 (heap 1024 42025 1040))