summary refs log tree commit diff
path: root/calmwm.c
diff options
context:
space:
mode:
authoroga <oga>2009-01-22 15:26:33 +0000
committeroga <oga>2009-01-22 15:26:33 +0000
commite2f3810fe83a7c7fdb4bd245ccdf5e4e343d1a55 (patch)
treeafd3688024ca82fb9f224c3f7b9d1034d2febb19 /calmwm.c
parent1b269199c16190c92f9318152c5beb84a854be3c (diff)
downloadcwm-e2f3810fe83a7c7fdb4bd245ccdf5e4e343d1a55.tar.gz
cwm-e2f3810fe83a7c7fdb4bd245ccdf5e4e343d1a55.tar.xz
cwm-e2f3810fe83a7c7fdb4bd245ccdf5e4e343d1a55.zip
Cache all of the X atoms we use at startup.
Do this instead of querying for them every time we use them. This
removes an XXX that has been in there since time began. This will become
more important as we move towards supporting netwm.

ok todd@, okan@.
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calmwm.c b/calmwm.c
index c332e55..6dc7cb2 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -74,10 +74,12 @@ main(int argc, char **argv)
 	bzero(&Conf, sizeof(Conf));
 	conf_setup(&Conf, conf_file);
 	client_setup();
+	xu_getatoms();
 	x_setup();
 	Starting = 0;
 
 	xev_init();
+
 	XEV_QUICK(NULL, NULL, MapRequest, xev_handle_maprequest, NULL);
 	XEV_QUICK(NULL, NULL, UnmapNotify, xev_handle_unmapnotify, NULL);
 	XEV_QUICK(NULL, NULL, ConfigureRequest,