[gtk+] wayland: set the wm_class on toplevel windows
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: set the wm_class on toplevel windows
- Date: Tue, 3 Sep 2013 15:04:18 +0000 (UTC)
commit 3c5d9d6889c60066456c29a840a135e3da9a55e8
Author: Giovanni Campagna <gcampagn redhat com>
Date: Tue Sep 3 11:38:35 2013 +0200
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
gdk/wayland/gdkwindow-wayland.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 633ca83..27632f3 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1066,6 +1066,14 @@ gdk_wayland_window_show (GdkWindow *window, gboolean already_mapped)
&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_make_event (window, GDK_MAP, NULL, FALSE);
@@ -1074,9 +1082,6 @@ gdk_wayland_window_show (GdkWindow *window, gboolean already_mapped)
if (impl->cairo_surface)
gdk_wayland_window_attach_image (window);
-
- if (impl->shell_surface && impl->title)
- wl_shell_surface_set_title (impl->shell_surface, impl->title);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]