[Wayland-bugs] [Bug 791569] New: GTK window icons are not honoured by wayland backend
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed Dec 13 11:40:57 UTC 2017
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-bugs at gtk.org
Reporter: dan-gnome at berrange.com
QA Contact: gtk-bugs at gtk.org
CC: rob at robster.org.uk, wayland-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171213/9ceae692/attachment.html>
More information about the wayland-bugs
mailing list