forked from enlightenment/efl
only need to avoid exposures when we're shaped
SVN revision: 75071
This commit is contained in:
parent
0037cc3f7d
commit
ef46a62d14
|
@ -361,6 +361,8 @@ _ecore_evas_x_render(Ecore_Evas *ee)
|
|||
ee->engine.x.damages = tmpr;
|
||||
}
|
||||
if (ee->engine.x.damages)
|
||||
{
|
||||
if (ee->shaped)
|
||||
{
|
||||
/* if we have a damage pixmap - we can avoid exposures by
|
||||
* disabling them just for setting the mask */
|
||||
|
@ -379,7 +381,6 @@ _ecore_evas_x_render(Ecore_Evas *ee)
|
|||
ECORE_X_EVENT_MASK_WINDOW_PROPERTY |
|
||||
ECORE_X_EVENT_MASK_WINDOW_COLORMAP
|
||||
);
|
||||
if (ee->shaped)
|
||||
ecore_x_window_shape_mask_set(ee->prop.window,
|
||||
ee->engine.x.mask);
|
||||
/* and re-enable them again */
|
||||
|
@ -398,6 +399,7 @@ _ecore_evas_x_render(Ecore_Evas *ee)
|
|||
ECORE_X_EVENT_MASK_WINDOW_PROPERTY |
|
||||
ECORE_X_EVENT_MASK_WINDOW_COLORMAP
|
||||
);
|
||||
}
|
||||
ecore_x_xregion_set(ee->engine.x.damages, ee->engine.x.gc);
|
||||
ecore_x_pixmap_paste(ee->engine.x.pmap, ee->prop.window,
|
||||
ee->engine.x.gc, 0, 0, ee->w, ee->h,
|
||||
|
|
Loading…
Reference in New Issue