aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_atoms.c
diff options
context:
space:
mode:
authorrbdpngn <rbdpngn>2004-12-02 07:43:33 +0000
committerrbdpngn <rbdpngn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2004-12-02 07:43:33 +0000
commitaa5ebc1df0ef53b5e8b864fff8ec2b7a5f605f0f (patch)
tree2621985296f1a8c8e3e795febc649e0da05102c6 /src/bin/e_atoms.c
parent1. new app file examples, 2. app parsing code... etc. etc. (diff)
downloadenlightenment-aa5ebc1df0ef53b5e8b864fff8ec2b7a5f605f0f.tar.gz
Knocked off one FIXME. Only handle necessary properties on a window property
change callback. SVN revision: 12334
Diffstat (limited to 'src/bin/e_atoms.c')
-rw-r--r--src/bin/e_atoms.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/bin/e_atoms.c b/src/bin/e_atoms.c
new file mode 100644
index 000000000..fbdcf6490
--- /dev/null
+++ b/src/bin/e_atoms.c
@@ -0,0 +1,37 @@
+#include "e.h"
+
+/* atom globals */
+int _e_atom_wm_name = 0;
+int _e_atom_wm_class = 0;
+int _e_atom_wm_hints = 0;
+int _e_atom_wm_size_hints = 0;
+int _e_atom_wm_protocols = 0;
+int _e_atom_wm_icon_name = 0;
+int _e_atom_wm_client_machine = 0;
+int _e_atom_motif_wm_hints = 0;
+int _e_atom_netwm_pid = 0;
+int _e_atom_netwm_desktop = 0;
+
+/* externally accessible functions */
+int
+e_atoms_init(void)
+{
+ _e_atom_wm_name = ecore_x_atom_get("WM_NAME");
+ _e_atom_wm_class = ecore_x_atom_get("WM_CLASS");
+ _e_atom_wm_hints = ecore_x_atom_get("WM_HINTS");
+ _e_atom_wm_size_hints = ecore_x_atom_get("WM_SIZE_HINTS");
+ _e_atom_wm_protocols = ecore_x_atom_get("WM_PROTOCOLS");
+ _e_atom_wm_icon_name = ecore_x_atom_get("WM_ICON_NAME");
+ _e_atom_wm_client_machine = ecore_x_atom_get("WM_CLIENT_MACHINE");
+ _e_atom_motif_wm_hints = ecore_x_atom_get("_MOTIF_WM_HINTS");
+ _e_atom_netwm_pid = ecore_x_atom_get("_NET_WM_PID");
+ _e_atom_netwm_desktop = ecore_x_atom_get("_NET_WM_DESKTOP");
+ return 1;
+}
+
+int
+e_atoms_shutdown(void)
+{
+ /* Nothing really to do here yet, just present for consistency right now */
+ return 1;
+}