account for state in xwl property change handler
authorMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 10 Aug 2015 17:20:35 +0000 (13:20 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 10 Aug 2015 22:59:02 +0000 (18:59 -0400)
we only care about events where the property was deleted here

src/modules/xwayland/dnd.c

index 6256e96..269bbc4 100644 (file)
@@ -343,6 +343,9 @@ _xwl_property(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_X_Event_Window_Prope
 {
    Pipe *p;
 
+#if (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 16)
+   if (!ev->state) return ECORE_CALLBACK_RENEW;
+#endif
    p = eina_hash_find(pipes, &ev->win);
    if (!p) return ECORE_CALLBACK_RENEW;
    /* FIXME: WHO FORGOT THE FUCKING STATE FLAG???? */