aboutsummaryrefslogtreecommitdiffstats
path: root/window.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-01-27 23:16:08 +0100
committerBert Münnich <ber.t@posteo.de>2014-02-02 14:36:10 +0100
commite2fa49ecfea58d8ec77b633fcee66e2b7ed95467 (patch)
treeb1a1b72fc0fa1c4b11cccdb3a4354ceeef38d611 /window.h
parentf6510b0a04e9351f0cea740d2237ebe293125f4c (diff)
downloadnsxiv-e2fa49ecfea58d8ec77b633fcee66e2b7ed95467.tar.zst
Unified X atom initialization
Diffstat (limited to 'window.h')
-rw-r--r--window.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/window.h b/window.h
index 19a7171..b9e064d 100644
--- a/window.h
+++ b/window.h
@@ -29,6 +29,16 @@ enum {
BAR_R_LEN = 64
};
+enum {
+ ATOM_WM_DELETE_WINDOW,
+ ATOM__NET_WM_NAME,
+ ATOM__NET_WM_ICON_NAME,
+ ATOM__NET_WM_ICON,
+ ATOM__NET_WM_STATE,
+ ATOM__NET_WM_STATE_FULLSCREEN,
+ ATOM_COUNT
+};
+
typedef struct {
Display *dpy;
int scr;
@@ -67,7 +77,7 @@ typedef struct {
} bar;
} win_t;
-extern Atom wm_delete_win;
+extern Atom atoms[ATOM_COUNT];
void win_init(win_t*);
void win_open(win_t*);