mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
20 lines
386 B
C
20 lines
386 B
C
#include <stdlib.h>
|
|
#include <xcb/xcb.h>
|
|
#include <xcb/xcb_event.h>
|
|
#include "types.h"
|
|
|
|
Node *make_node(void)
|
|
{
|
|
Node *n = malloc(sizeof(Node));
|
|
n->parent = n->first_child = n->second_child = NULL;
|
|
n->client = NULL;
|
|
return n;
|
|
}
|
|
|
|
Desktop *make_desktop(void)
|
|
{
|
|
Desktop *d = malloc(sizeof(Desktop));
|
|
d->name = NULL;
|
|
d->previous = d->next = NULL;
|
|
return d;
|
|
}
|