Add comments to fork() logic for readibility
[notion/jeffpc.git] / ioncore / cursor.c
blob5c8954f800d692c6123bfa9c885ca74515c58286
1 /*
2 * ion/ioncore/cursor.c
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #include "common.h"
10 #include "event.h"
11 #include "cursor.h"
12 #include "global.h"
15 static Cursor cursors[IONCORE_N_CURSORS];
17 #define LCURS(TYPE) \
18 cursors[IONCORE_CURSOR_##TYPE]=XCreateFontCursor(ioncore_g.dpy, CF_CURSOR_##TYPE)
20 void ioncore_init_cursors()
22 LCURS(DEFAULT);
23 LCURS(RESIZE);
24 LCURS(MOVE);
25 LCURS(DRAG);
26 LCURS(WAITKEY);
30 Cursor ioncore_xcursor(int cursor)
32 return cursors[cursor];