From 6a8a8531bad25c148b4c62263d16c0996a21ca6e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 20 Jan 2008 09:52:10 -0500 Subject: check them startupnotify-provided wmclass against both parts of a window's wm_class hint, as the spec doth say so. --- openbox/startupnotify.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openbox/startupnotify.h') diff --git a/openbox/startupnotify.h b/openbox/startupnotify.h index 7c28faba..d6f29724 100644 --- a/openbox/startupnotify.h +++ b/openbox/startupnotify.h @@ -27,8 +27,11 @@ void sn_shutdown(gboolean reconfig); gboolean sn_app_starting(); -/*! Notify that an app has started */ -Time sn_app_started(const gchar *id, const gchar *wmclass); +/*! Notify that an app has started + @param wmclass the WM_CLASS[1] hint + @param name the WM_CLASS[0] hint + */ +Time sn_app_started(const gchar *id, const gchar *wmclass, const gchar *name); /*! Get the desktop requested via the startup-notiication protocol if one was requested */ -- cgit v1.2.3 From 1b33ab6c0d9117a84325e1bc01489bde566cda64 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 21 Jan 2008 22:27:03 -0500 Subject: use the for startup notfication in the execute action. when present don't use the check against the binary. --- openbox/startupnotify.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openbox/startupnotify.h') diff --git a/openbox/startupnotify.h b/openbox/startupnotify.h index d6f29724..758beee6 100644 --- a/openbox/startupnotify.h +++ b/openbox/startupnotify.h @@ -38,8 +38,9 @@ Time sn_app_started(const gchar *id, const gchar *wmclass, const gchar *name); gboolean sn_get_desktop(gchar *id, guint *desktop); /* Get the environment to run the program in, with startup notification */ -void sn_setup_spawn_environment(gchar *program, gchar *name, - gchar *icon_name, gint desktop); +void sn_setup_spawn_environment(const gchar *program, const gchar *name, + const gchar *icon_name, const gchar *wmclass, + gint desktop); /* Tell startup notification we're not actually running the program we told it we were -- cgit v1.2.3