aboutsummaryrefslogtreecommitdiffstats
path: root/xlib.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-07 23:14:13 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-07 23:14:13 -0400
commit133d3a7c48dc780982622215a3dc0f58abb6cf55 (patch)
tree4ced3fa7ff4cc98c5c41a2eab754dba82be2e69b /xlib.h
parenta8c3d350a87d83c5c8e0b53a89fff85d72873166 (diff)
downloadrunes-133d3a7c48dc780982622215a3dc0f58abb6cf55.tar.gz
runes-133d3a7c48dc780982622215a3dc0f58abb6cf55.zip
handle closing the window
Diffstat (limited to 'xlib.h')
-rw-r--r--xlib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xlib.h b/xlib.h
index a8b84b0..3c8ae24 100644
--- a/xlib.h
+++ b/xlib.h
@@ -3,11 +3,18 @@
#include <X11/Xlib.h>
+enum runes_atoms {
+ RUNES_ATOM_WM_DELETE_WINDOW,
+ RUNES_NUM_ATOMS
+};
+
struct runes_window {
Display *dpy;
Window w;
GC gc;
XIC ic;
+
+ Atom atoms[RUNES_NUM_ATOMS];
};
struct xlib_loop_data {