simplify unsetting/setting damage flag in ecore evas rendering to avoid altering...
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 10 Aug 2012 08:45:28 +0000 (08:45 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 10 Aug 2012 08:45:28 +0000 (08:45 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@75072 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_x.c

index e3966ab..4bf407d 100644 (file)
@@ -364,41 +364,14 @@ _ecore_evas_x_render(Ecore_Evas *ee)
                     {
                        if (ee->shaped)
                          {
+                            
                             /* if we have a damage pixmap - we can avoid exposures by
                              * disabling them just for setting the mask */
-                            ecore_x_event_mask_set(ee->prop.window,
-                                                   ECORE_X_EVENT_MASK_KEY_DOWN |
-                                                   ECORE_X_EVENT_MASK_KEY_UP |
-                                                   ECORE_X_EVENT_MASK_MOUSE_DOWN |
-                                                   ECORE_X_EVENT_MASK_MOUSE_UP |
-                                                   ECORE_X_EVENT_MASK_MOUSE_IN |
-                                                   ECORE_X_EVENT_MASK_MOUSE_OUT |
-                                                   ECORE_X_EVENT_MASK_MOUSE_MOVE |
-                                                   //ECORE_X_EVENT_MASK_WINDOW_DAMAGE |
-                                                   ECORE_X_EVENT_MASK_WINDOW_VISIBILITY |
-                                                   ECORE_X_EVENT_MASK_WINDOW_CONFIGURE |
-                                                   ECORE_X_EVENT_MASK_WINDOW_FOCUS_CHANGE |
-                                                   ECORE_X_EVENT_MASK_WINDOW_PROPERTY |
-                                                   ECORE_X_EVENT_MASK_WINDOW_COLORMAP
-                                                  );
+                            ecore_x_event_mask_unset(ee->prop.window, ECORE_X_EVENT_MASK_WINDOW_DAMAGE);
                             ecore_x_window_shape_mask_set(ee->prop.window,
                                                           ee->engine.x.mask);
                             /* and re-enable them again */
-                            ecore_x_event_mask_set(ee->prop.window,
-                                                   ECORE_X_EVENT_MASK_KEY_DOWN |
-                                                   ECORE_X_EVENT_MASK_KEY_UP |
-                                                   ECORE_X_EVENT_MASK_MOUSE_DOWN |
-                                                   ECORE_X_EVENT_MASK_MOUSE_UP |
-                                                   ECORE_X_EVENT_MASK_MOUSE_IN |
-                                                   ECORE_X_EVENT_MASK_MOUSE_OUT |
-                                                   ECORE_X_EVENT_MASK_MOUSE_MOVE |
-                                                   ECORE_X_EVENT_MASK_WINDOW_DAMAGE |
-                                                   ECORE_X_EVENT_MASK_WINDOW_VISIBILITY |
-                                                   ECORE_X_EVENT_MASK_WINDOW_CONFIGURE |
-                                                   ECORE_X_EVENT_MASK_WINDOW_FOCUS_CHANGE |
-                                                   ECORE_X_EVENT_MASK_WINDOW_PROPERTY |
-                                                   ECORE_X_EVENT_MASK_WINDOW_COLORMAP
-                                                  );
+                            ecore_x_event_mask_set(ee->prop.window, ECORE_X_EVENT_MASK_WINDOW_DAMAGE);
                          }
                        ecore_x_xregion_set(ee->engine.x.damages, ee->engine.x.gc);
                        ecore_x_pixmap_paste(ee->engine.x.pmap, ee->prop.window,