client: add support for _NET_STARTUP_ID

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-04 13:04:19 +02:00
parent bdf2b082bf
commit e4f7e99c3f
4 changed files with 7 additions and 0 deletions

View file

@ -55,6 +55,7 @@ luaA_client_gc(lua_State *L)
button_array_wipe(&c->buttons);
image_unref(L, c->icon);
p_delete(&c->class);
p_delete(&c->startup_id);
p_delete(&c->instance);
p_delete(&c->icon_name);
p_delete(&c->name);
@ -515,6 +516,8 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen,
property_update_wm_icon_name(c);
property_update_wm_class(c);
xutil_text_prop_get(globalconf.connection, c->win, _NET_STARTUP_ID, &c->startup_id, NULL);
/* update strut */
ewmh_process_client_strut(c, NULL);

View file

@ -1,4 +1,5 @@
_NET_SUPPORTED
_NET_STARTUP_ID
_NET_CLIENT_LIST
_NET_CLIENT_LIST_STACKING
_NET_NUMBER_OF_DESKTOPS

1
ewmh.c
View file

@ -65,6 +65,7 @@ ewmh_init(int phys_screen)
{
_NET_SUPPORTED,
_NET_SUPPORTING_WM_CHECK,
_NET_STARTUP_ID,
_NET_CLIENT_LIST,
_NET_CLIENT_LIST_STACKING,
_NET_NUMBER_OF_DESKTOPS,

View file

@ -168,6 +168,8 @@ struct client_t
char *name, *icon_name;
/** WM_CLASS stuff */
char *class, *instance;
/** Startup ID */
char *startup_id;
/** Window geometry */
area_t geometry;
struct