Added meta_group_get_size() to allow for more efficient check of whether window is part of a larger group.
This commit is contained in:
parent
fc6b78a20c
commit
aad8eb1999
@ -272,3 +272,13 @@ meta_group_property_notify (MetaGroup *group,
|
||||
return TRUE;
|
||||
|
||||
}
|
||||
|
||||
int
|
||||
meta_group_get_size (MetaGroup *group)
|
||||
{
|
||||
if (!group)
|
||||
return 0;
|
||||
|
||||
return group->refcount;
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,8 @@ void meta_group_update_layers (MetaGroup *group);
|
||||
|
||||
const char* meta_group_get_startup_id (MetaGroup *group);
|
||||
|
||||
int meta_group_get_size (MetaGroup *group);
|
||||
|
||||
gboolean meta_group_property_notify (MetaGroup *group,
|
||||
XEvent *event);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user