discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b843527a6ccc5efaca5f3e7f783574d73223e422

commit b843527a6ccc5efaca5f3e7f783574d73223e422
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Sep 29 12:53:59 2015 -0400

    do not roundtrip for x11 client message DBG if it will not be visible
    
    also free fetched atom name
---
 src/bin/e_comp_x.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index d795e53..8cef18f 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -1960,7 +1960,12 @@ _e_comp_x_message(void *data EINA_UNUSED, int type 
EINA_UNUSED, Ecore_X_Event_Cl
    ec = _e_comp_x_client_find_by_window(ev->win);
    if (!ec)
      {
-        DBG("missed client message '%s' for %u", 
ecore_x_atom_name_get(ev->message_type), ev->win);
+        char *name;
+
+        if (!eina_log_domain_level_check(e_log_dom, EINA_LOG_LEVEL_DBG)) 
return ECORE_CALLBACK_RENEW;
+        name = ecore_x_atom_name_get(ev->message_type);
+        DBG("missed client message '%s' for %u", name, ev->win);
+        free(name);
         return ECORE_CALLBACK_RENEW;
      }
    if (ev->message_type == ECORE_X_ATOM_NET_WM_WINDOW_OPACITY)

-- 


Reply via email to