From 133d3a7c48dc780982622215a3dc0f58abb6cf55 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 7 Apr 2014 23:14:13 -0400 Subject: handle closing the window --- xlib.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlib.h') diff --git a/xlib.h b/xlib.h index a8b84b0..3c8ae24 100644 --- a/xlib.h +++ b/xlib.h @@ -3,11 +3,18 @@ #include +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 { -- cgit v1.2.3-54-g00ecf