mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
wayland: set the wm_class on toplevel windows
Before mapping the window, set the title and class, to allow application tracking by gnome-shell. https://bugzilla.gnome.org/show_bug.cgi?id=707129
This commit is contained in:
parent
7f8bf41633
commit
3c5d9d6889
@ -1066,6 +1066,14 @@ gdk_wayland_window_show (GdkWindow *window, gboolean already_mapped)
|
|||||||
&shell_surface_listener, window);
|
&shell_surface_listener, window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (impl->shell_surface)
|
||||||
|
{
|
||||||
|
if (impl->title)
|
||||||
|
wl_shell_surface_set_title (impl->shell_surface, impl->title);
|
||||||
|
|
||||||
|
wl_shell_surface_set_class (impl->shell_surface, gdk_get_program_class ());
|
||||||
|
}
|
||||||
|
|
||||||
gdk_window_set_type_hint (window, impl->hint);
|
gdk_window_set_type_hint (window, impl->hint);
|
||||||
|
|
||||||
_gdk_make_event (window, GDK_MAP, NULL, FALSE);
|
_gdk_make_event (window, GDK_MAP, NULL, FALSE);
|
||||||
@ -1074,9 +1082,6 @@ gdk_wayland_window_show (GdkWindow *window, gboolean already_mapped)
|
|||||||
|
|
||||||
if (impl->cairo_surface)
|
if (impl->cairo_surface)
|
||||||
gdk_wayland_window_attach_image (window);
|
gdk_wayland_window_attach_image (window);
|
||||||
|
|
||||||
if (impl->shell_surface && impl->title)
|
|
||||||
wl_shell_surface_set_title (impl->shell_surface, impl->title);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user