diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-09 19:29:10 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-09 19:29:10 +0000 |
| commit | b84a934ab7b3ebd68b8b90961146463ac17d396e (patch) | |
| tree | 149b7a13bdb56f264836d7907997e821960c1c26 | |
| parent | d38c835cefd6ab9d0d1fb82480a1695c76e0b452 (diff) | |
provide function to tell if a client has any group siblings
| -rw-r--r-- | openbox/client.c | 5 | ||||
| -rw-r--r-- | openbox/client.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c index feaa24df..1aaa0267 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -3200,3 +3200,8 @@ ObClient* client_under_pointer() } return ret; } + +gboolean client_has_group_siblings(ObClient *self) +{ + return self->group && self->group->members->next; +} diff --git a/openbox/client.h b/openbox/client.h index 078de272..aeb2160e 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -563,4 +563,6 @@ void client_update_sm_client_id(ObClient *self); ObClient* client_under_pointer(); +gboolean client_has_group_siblings(ObClient *self); + #endif |
