From 4da3a69fc7914b46b637058e89a8024e29749155 Mon Sep 17 00:00:00 2001 From: oga Date: Thu, 22 Jan 2009 15:26:33 +0000 Subject: 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@. --- calmwm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calmwm.c') 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, -- cgit v1.2.3-2-gb3c3