cap: don't show orphaned capabilities
This commit is contained in:
parent
2e4bf32f36
commit
455d2750fc
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ clicap_visible(const struct CapabilityEntry *cap)
|
|||
{
|
||||
struct ClientCapability *clicap;
|
||||
|
||||
/* orphaned caps shouldn't be visible */
|
||||
if (cap->flags & CAP_ORPHANED)
|
||||
return 0;
|
||||
|
||||
if (cap->ownerdata == NULL)
|
||||
return 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue