all repos — openbox @ c920b4769ef294d9421dc0220692b6b23c7a20e5

openbox fork - make it a bit more like ryudo

render/geom.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __geom_h
#define __geom_h

typedef struct {
    int width;
    int height;
} RrSize;

typedef struct {
    int x;
    int y;
    int width;
    int height;
} RrRect;

#define RECT_SET(r, nx, ny, w, h) \
    (r).x = (nx), (r).y = (ny), (r).width = (w), (r).height = (h)

#endif