aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authoroga2009-01-22 15:26:33 +0000
committeroga2009-01-22 15:26:33 +0000
commit4da3a69fc7914b46b637058e89a8024e29749155 (patch)
tree92a1cabb970e7f81f1011457f29aa4b879d37fae /calmwm.c
parent24a656d337d28ac3784e1e9abe0f21187f240764 (diff)
downloadcwm-4da3a69fc7914b46b637058e89a8024e29749155.tar.gz
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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calmwm.c b/calmwm.c
index 8280647..05c4945 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.c,v 1.33 2009/01/16 15:24:14 okan Exp $
+ * $Id: calmwm.c,v 1.34 2009/01/22 15:26:33 oga Exp $
*/
#include "headers.h"
@@ -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,