summaryrefslogtreecommitdiff
path: root/src/atoms.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/atoms.rs')
-rw-r--r--src/atoms.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/atoms.rs b/src/atoms.rs
new file mode 100644
index 0000000..363e07c
--- /dev/null
+++ b/src/atoms.rs
@@ -0,0 +1,27 @@
+use crate::Result;
+use xcb::Connection;
+
+#[derive(Debug)]
+pub struct InternedAtoms {}
+
+impl InternedAtoms {
+ pub fn new_with(conn: &Connection) -> Result<Self> {
+ // TODO: intern atoms
+
+ // utf8string = XInternAtom(dpy, "UTF8_STRING", False);
+ // wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
+ // wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
+ // wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False);
+ // wmatom[WMTakeFocus] = XInternAtom(dpy, "WM_TAKE_FOCUS", False);
+ // netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False);
+ // netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
+ // netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
+ // netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False);
+ // netatom[NetWMCheck] = XInternAtom(dpy, "_NET_SUPPORTING_WM_CHECK", False);
+ // netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
+ // netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False);
+ // netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False);
+ // netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False);
+ Ok(Self {})
+ }
+}