Skip to content

Commit

Permalink
Replaced SUBTLE_TRAY_KILL with _NET_CLOSE_WINDOW
Browse files Browse the repository at this point in the history
  • Loading branch information
unexist committed Aug 7, 2011
1 parent efcc488 commit 0c48d76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/subtle/ewmh.c
Expand Up @@ -73,8 +73,7 @@ subEwmhInit(void)
"SUBTLE_CLIENT_TAGS", "SUBTLE_CLIENT_RETAG",
"SUBTLE_CLIENT_GRAVITY", "SUBTLE_CLIENT_SCREEN", "SUBTLE_CLIENT_FLAGS",
"SUBTLE_GRAVITY_NEW", "SUBTLE_GRAVITY_LIST", "SUBTLE_GRAVITY_KILL",
"SUBTLE_TAG_NEW", "SUBTLE_TAG_LIST", "SUBTLE_TAG_KILL",
"SUBTLE_TRAY_LIST", "SUBTLE_TRAY_KILL",
"SUBTLE_TAG_NEW", "SUBTLE_TAG_LIST", "SUBTLE_TAG_KILL", "SUBTLE_TRAY_LIST",
"SUBTLE_VIEW_NEW", "SUBTLE_VIEW_TAGS", "SUBTLE_VIEW_STYLE",
"SUBTLE_VIEW_ICONS", "SUBTLE_VIEW_KILL",
"SUBTLE_SUBLET_NEW", "SUBTLE_SUBLET_UPDATE", "SUBTLE_SUBLET_DATA",
Expand Down
9 changes: 4 additions & 5 deletions src/subtlext/tag.c
Expand Up @@ -308,17 +308,16 @@ subTagClients(VALUE self)
for(i = 0; i < nclients; i++)
{
if((tags = (unsigned long *)subSharedPropertyGet(display,
clients[i], XA_CARDINAL, XInternAtom(display, "SUBTLE_CLIENT_TAGS",
False), NULL)))
clients[i], XA_CARDINAL, XInternAtom(display,
"SUBTLE_CLIENT_TAGS", False), NULL)))
{
/* Check if tag id matches */
if(*tags & (1L << (FIX2INT(id) + 1)))
{
/* Create new client */
if(!NIL_P(c = rb_funcall(klass, meth, 1, INT2FIX(i))))
if(!NIL_P(c = rb_funcall(klass, meth, 1,
LONG2NUM(clients[i]))))
{
rb_iv_set(c, "@win", LONG2NUM(clients[i]));

subClientUpdate(c);

rb_ary_push(array, c);
Expand Down

0 comments on commit 0c48d76

Please sign in to comment.