all repos — openbox @ 806a8c411f10c7a2292bfac15d77c8609f56ee71

openbox fork - make it a bit more like ryudo

openbox/group.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __group_h
#define __group_h

#include <X11/Xlib.h>
#include <glib.h>

typedef struct _ObGroup ObGroup;

struct _ObClient;

struct _ObGroup
{
    Window leader;

    /* list of clients */
    GSList *members;
};

extern GHashTable *group_map;

void group_startup(gboolean reconfig);
void group_shutdown(gboolean reconfig);

ObGroup *group_add(Window leader, struct _ObClient *client);

void group_remove(ObGroup *self, struct _ObClient *client);

#endif