e17/comp: enable property sniffing of override redirect windows again.
authorHannes Janetzek <hannes.janetzek@gmail.com>
Wed, 16 Mar 2011 22:21:52 +0000 (22:21 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Wed, 16 Mar 2011 22:21:52 +0000 (22:21 +0000)
should there be a function in ecore_x to add event-mask elements?

SVN revision: 57809

src/modules/comp/e_mod_comp.c

index 99258ce..4c4ba18 100644 (file)
@@ -2,6 +2,7 @@
 #include "e_mod_main.h"
 #include "e_mod_comp.h"
 #include "e_mod_comp_update.h"
+#include <X11/Xlib.h>
 
 #define OVER_FLOW 4
 
@@ -1737,6 +1738,9 @@ _e_mod_comp_win_add(E_Comp *c, Ecore_X_Window win)
         if (cw->argb) evas_object_image_alpha_set(cw->obj, 1);
         else evas_object_image_alpha_set(cw->obj, 0);
 
+       if (!(cw->bd || cw->pop || cw->menu))
+         XSelectInput(ecore_x_display_get(), cw->win, (att.event_mask.mine | PropertyChangeMask));
+       
         _e_mod_comp_win_shadow_setup(cw);
 
         edje_object_signal_callback_add(cw->shobj, "e,action,show,done", "e",