Skip to content

Commit

Permalink
Added REMOVECLIENTREFERENCES(), client.c (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerjenigeUberMensch authored Nov 8, 2024
1 parent 2b17509 commit 01c2554
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ uint32_t WASDOCKEDVERT(Client *c);
uint32_t WASDOCKEDHORZ(Client *c);
uint32_t WASDOCKED(Client *c);
uint32_t SHOULDMANAGE(const XCBWindow window);
Client *REMOVECLIENTREFERENCES(Client *c);
uint32_t ISFIXED(Client *c);
uint32_t ISURGENT(Client *c);
/* flag */
Expand Down
6 changes: 6 additions & 0 deletions src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,12 @@ u32 SHOULDMANAGE(const XCBWindow window)

return 1;
}
Client *REMOVECLIENTREFERENCES(Client *c)
{
detachcompletely(c);
delclienthash(c);
return c;
}
u32 ISFIXED(Client *c) { return (c->minw != 0) && (c->minh != 0) && (c->minw == c->maxw) && (c->minh == c->maxh); }
u32 ISURGENT(Client *c) { return c->ewmhflags & WStateFlagDemandAttention; }
/* flag */
Expand Down

0 comments on commit 01c2554

Please sign in to comment.