From dc8094726026c5b56b5600f95da8475561b1073d Mon Sep 17 00:00:00 2001 From: tcmal Date: Mon, 3 Jun 2024 17:06:15 +0100 Subject: initial commit: basic xorg initialisation --- src/atoms.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/atoms.rs (limited to 'src/atoms.rs') 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 { + // 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 {}) + } +} -- cgit v1.2.3