mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
client: add support for _NET_STARTUP_ID
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
bdf2b082bf
commit
e4f7e99c3f
4 changed files with 7 additions and 0 deletions
3
client.c
3
client.c
|
@ -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);
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
_NET_SUPPORTED
|
||||
_NET_STARTUP_ID
|
||||
_NET_CLIENT_LIST
|
||||
_NET_CLIENT_LIST_STACKING
|
||||
_NET_NUMBER_OF_DESKTOPS
|
||||
|
|
1
ewmh.c
1
ewmh.c
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue