Revert "comp: fix self feeding event loop with shape input events on override wins"

This reverts commit 05a7087c84.
This commit is contained in:
Mike Blumenkrantz 2014-01-23 09:02:33 -05:00
parent b1fd48af59
commit 292e8fd4b3
1 changed files with 2 additions and 39 deletions

View File

@ -2399,40 +2399,6 @@ _e_comp_x_focus_in(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_X_Event_W
return ECORE_CALLBACK_PASS_ON;
}
static Eina_Bool
_shapes_differ(E_Client *ec)
{
Eina_Bool differ = EINA_FALSE;
if (ec->shape_input_rects)
{
Ecore_X_Rectangle *rects;
int num = 0, i;
rects = ecore_x_window_shape_input_rectangles_get
(e_client_util_win_get(ec), &num);
if (rects)
{
if (num == (int)ec->shape_input_rects_num)
{
for (i = 0; i < num; i++)
{
if ((rects[i].x != ec->shape_input_rects[i].x) ||
(rects[i].y != ec->shape_input_rects[i].y) ||
(rects[i].width != (unsigned int)ec->shape_input_rects[i].w) ||
(rects[i].height != (unsigned int)ec->shape_input_rects[i].h))
{
differ = EINA_TRUE;
break;
}
}
}
else differ = EINA_TRUE;
free(rects);
}
}
return differ;
}
static Eina_Bool
_e_comp_x_shape(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_X_Event_Window_Shape *ev)
{
@ -2451,11 +2417,8 @@ _e_comp_x_shape(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_X_Event_Wind
{
if (ev->type == ECORE_X_SHAPE_INPUT)
{
if (_shapes_differ(ec))
{
ec->changes.shape_input = 1;
ec->need_shape_merge = 1;
}
ec->changes.shape_input = 1;
ec->need_shape_merge = 1;
}
else
{