1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
use crate::error::*;
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 {})
}
}
|