From 475253b7bcfd03a932c4b7efd969b3d2bf155035 Mon Sep 17 00:00:00 2001 From: tcmal Date: Fri, 21 Jun 2024 19:13:12 +0100 Subject: refactor connection-related stuff out, make things a bit cleaner --- src/conn_info/atoms.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/conn_info/atoms.rs (limited to 'src/conn_info/atoms.rs') diff --git a/src/conn_info/atoms.rs b/src/conn_info/atoms.rs new file mode 100644 index 0000000..2d23c81 --- /dev/null +++ b/src/conn_info/atoms.rs @@ -0,0 +1,18 @@ +xcb::atoms_struct! { + #[derive(Copy, Clone, Debug)] + pub struct Atoms { + pub wm_protocols => b"WM_PROTOCOLS", + pub wm_delete => b"WM_DELETE_WINDOW", + pub wm_state => b"WM_STATE", + pub wm_take_focus => b"WM_TAKE_FOCUS", + pub net_active_window => b"_NET_ACTIVE_WINDOW", + pub net_supported => b"_NET_SUPPORTED", + pub net_wm_name => b"_NET_WM_NAME", + pub net_wm_state => b"_NET_WM_STATE", + pub net_wm_check => b"_NET_SUPPORTING_WM_CHECK", + pub net_wm_fullscreen => b"_NET_WM_STATE_FULLSCREEN", + pub net_wm_window_type => b"_NET_WM_WINDOW_TYPE", + pub net_wm_window_type_dialog => b"_NET_WM_WINDOW_TYPE_DIALOG", + pub net_client_list => b"_NET_CLIENT_LIST", + } +} -- cgit v1.2.3