add e_client_util_top_parent_get()

devs/yoz/bryce
Mike Blumenkrantz 6 years ago
parent 689441781a
commit 5130935284
  1. 9
      src/bin/e_client.x

@ -164,3 +164,12 @@ e_client_util_name_get(const E_Client *ec)
return ec->icccm.title;
return NULL;
}
static inline E_Client *
e_client_util_top_parent_get(const E_Client *ec)
{
E_Client *parent = ec->parent;
while (parent->parent) parent = parent->parent;
return parent;
}

Loading…
Cancel
Save