add debug info when x11 client messages are missed
authorMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 30 Jun 2015 22:36:03 +0000 (18:36 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 30 Jun 2015 22:36:03 +0000 (18:36 -0400)
src/bin/e_comp_x.c

index 6c3279f..12e7cae 100644 (file)
@@ -1931,7 +1931,11 @@ _e_comp_x_message(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_X_Event_Cl
    E_Client *ec;
 
    ec = _e_comp_x_client_find_by_window(ev->win);
-   if (!ec) return ECORE_CALLBACK_RENEW;
+   if (!ec)
+     {
+        DBG("missed client message '%s' for %u", ecore_x_atom_name_get(ev->message_type), ev->win);
+        return ECORE_CALLBACK_RENEW;
+     }
    if (ev->message_type == ECORE_X_ATOM_NET_WM_WINDOW_OPACITY)
      {
         ec->netwm.fetch.opacity = 1;