From f99a082a79aaed03805a13a9dfe8ad3ec5a327c0 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sun, 4 Jan 2009 19:48:11 +0100 Subject: [PATCH] event: Remove debug stuff and warning --- src/event.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/event.c b/src/event.c index c809466..9d9fc12 100644 --- a/src/event.c +++ b/src/event.c @@ -174,21 +174,12 @@ clientmessageevent(XClientMessageEvent *ev) { uchar *ret_func = NULL; uchar *ret_cmd = NULL; - char *cmd = NULL; - if(XGetWindowProperty(dpy, ROOT, net_atom[wmfs_function], 0, 4096, - False, net_atom[utf8_string], &rt, &rf, &ir, &il, &ret_func) == Success) - printf("--> %s -> ", ret_func); + XGetWindowProperty(dpy, ROOT, net_atom[wmfs_function], 0, 4096, + False, net_atom[utf8_string], &rt, &rf, &ir, &il, &ret_func); - if(XGetWindowProperty(dpy, ROOT, net_atom[wmfs_cmd], 0, 4096, - False, net_atom[utf8_string], &rt, &rf, &ir, &il, &ret_cmd) == Success) - printf("%s\n", ret_cmd); -/* - if(strcmp((char*)ret_cmd, "NULL") == 0) - cmd = NULL; - else - if(ret_cmd != NULL) - strcpy(cmd, (char*)ret_cmd)*/ + XGetWindowProperty(dpy, ROOT, net_atom[wmfs_cmd], 0, 4096, + False, net_atom[utf8_string], &rt, &rf, &ir, &il, &ret_cmd); void (*func)(uicb_t) = name_to_func((char*)ret_func, func_list); @@ -202,8 +193,6 @@ clientmessageevent(XClientMessageEvent *ev) } - - return; }