diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-11 15:20:01 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-11 15:20:01 -0400 |
commit | b92788dee979855f753e030cb8be8d19c22d00df (patch) | |
tree | 1c8992c28e0b874dacf33bd912d6a372f1c5b243 /src/window-backend-xlib.h | |
parent | b11900bb0594b5e04c4ad69237d0a61146f85d35 (diff) | |
download | runes-b92788dee979855f753e030cb8be8d19c22d00df.tar.gz runes-b92788dee979855f753e030cb8be8d19c22d00df.zip |
split global window management stuff out into its own file
also rename a few things for clarity
Diffstat (limited to 'src/window-backend-xlib.h')
-rw-r--r-- | src/window-backend-xlib.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/window-backend-xlib.h b/src/window-backend-xlib.h new file mode 100644 index 0000000..b38aa16 --- /dev/null +++ b/src/window-backend-xlib.h @@ -0,0 +1,29 @@ +#ifndef _RUNES_WINDOW_BACKEND_XLIB_H +#define _RUNES_WINDOW_BACKEND_XLIB_H + +#include <X11/Xlib.h> + +enum runes_atoms { + RUNES_ATOM_WM_DELETE_WINDOW, + RUNES_ATOM_NET_WM_PING, + RUNES_NUM_PROTOCOL_ATOMS, + RUNES_ATOM_NET_WM_PID = 2, + RUNES_ATOM_NET_WM_ICON_NAME, + RUNES_ATOM_NET_WM_NAME, + RUNES_ATOM_UTF8_STRING, + RUNES_ATOM_WM_PROTOCOLS, + RUNES_ATOM_TARGETS, + RUNES_ATOM_RUNES_FLUSH, + RUNES_ATOM_RUNES_SELECTION, + RUNES_NUM_ATOMS +}; + +struct runes_window_backend { + Display *dpy; + Atom atoms[RUNES_NUM_ATOMS]; +}; + +RunesWindowBackend *runes_window_backend_new(); +void runes_window_backend_delete(RunesWindowBackend *wb); + +#endif |