summaryrefslogtreecommitdiffstats
path: root/window.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-07-22 14:49:06 +0200
committerBert <ber.t@gmx.com>2011-07-22 14:49:06 +0200
commita271e167443aedca2ed9c28b51fc6de33692dadb (patch)
tree01d2e58d2aa579de2abf8e609612721eb4a7b7dd /window.h
parent5f780fc3e77aef1f1b87fdd6662a7caee6efbc3b (diff)
downloadnsxiv-a271e167443aedca2ed9c28b51fc6de33692dadb.tar.zst
Reduced usage of preprocessor macros
Diffstat (limited to 'window.h')
-rw-r--r--window.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/window.h b/window.h
index 74e3102..0942137 100644
--- a/window.h
+++ b/window.h
@@ -21,14 +21,9 @@
#include <X11/Xlib.h>
-#define CLEANMASK(mask) ((mask) & ~LockMask)
+#include "types.h"
-typedef enum {
- CURSOR_ARROW = 0,
- CURSOR_NONE,
- CURSOR_HAND,
- CURSOR_WATCH
-} win_cur_t;
+#define CLEANMASK(mask) ((mask) & ~LockMask)
typedef struct {
Display *dpy;
@@ -75,6 +70,6 @@ void win_draw_rect(win_t*, Pixmap, int, int, int, int, Bool, int,
unsigned long);
void win_set_title(win_t*, const char*);
-void win_set_cursor(win_t*, win_cur_t);
+void win_set_cursor(win_t*, cursor_t);
#endif /* WINDOW_H */