forked from enlightenment/efl
extra paranoia there... in case of no shape extension.
SVN revision: 5739
This commit is contained in:
parent
c4fa8d84c5
commit
cc9cff48d4
|
@ -71,6 +71,11 @@ ecore_event_x_init(void)
|
||||||
int i, shape_event_id, current_lock;
|
int i, shape_event_id, current_lock;
|
||||||
|
|
||||||
shape_event_id = max_event_id = ecore_event_shape_get_id();
|
shape_event_id = max_event_id = ecore_event_shape_get_id();
|
||||||
|
if (shape_event_id < SelectionRequest)
|
||||||
|
{
|
||||||
|
max_event_id = SelectionRequest;
|
||||||
|
fprintf(stderr, "ERROR: no shape extesion! This is BAD!\n");
|
||||||
|
}
|
||||||
event_translator = NEW_PTR(max_event_id + 1);
|
event_translator = NEW_PTR(max_event_id + 1);
|
||||||
for (i = 0; i < max_event_id + 1; i++)
|
for (i = 0; i < max_event_id + 1; i++)
|
||||||
event_translator[i] = NULL;
|
event_translator[i] = NULL;
|
||||||
|
|
Loading…
Reference in New Issue