https://bugzilla.gnome.org/show_bug.cgi?id=791569

            Bug ID: 791569
           Summary: GTK window icons are not honoured by wayland backend
    Classification: Platform
           Product: gtk+
           Version: 3.22.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
          Assignee: gtk-b...@gtk.org
          Reporter: dan-gn...@berrange.com
        QA Contact: gtk-b...@gtk.org
                CC: r...@robster.org.uk, wayland-bugs@lists.freedesktop.org
     GNOME version: ---

I have an app that is calling

  gtk_window_set_default_icon_from_file(...some icon file...)

to set the default window icon. This has historically worked fine with GTK2 and
GTK3 when using the X11 backend, even when in a Wayland session (and thus using
Xwayland compat).

When using GTK3 with the Wayland backend though, these icons are no longer
honoured. The windows just get given a generic icon.

The gdk_wayland_window_set_icon_list() implementation is just a no-op, so
completely ignores any attempt to set window icons, with any of the
gtk_window_set_default_icon* and gtk_window_set_icon* methods AFAICT.

Now, I accept the API docs say that some window managers will not honour the
icons, but this doesn't appear to be the case here.  

The GNOME shell wayland session *is* honouring icons someteimes, because when I
run with GDK_BACKEND=x11 the icons somehow get passed from the app to Xwayland,
and ultimately to the GNOME shell session. If that's possible, I'd expect it to
be possible to to get the GDK wayland native backend to achieve the same.

If, however, this isn't possible at least the API docs for
gtk_window_set_default_icon* / gtk_window_set_icon* ought to be updated to tell
application developers what alternative APIs to use to get icons to be
displayed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
wayland-bugs mailing list
wayland-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to