forked from enlightenment/efl
parent
47bf4e1999
commit
28bb3a6a08
|
@ -437,6 +437,7 @@ _ecore_event_call(void)
|
||||||
ecore_main_loop_quit();
|
ecore_main_loop_quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// printf("EVENT BATCH DONE\n");
|
||||||
ecore_raw_event_type = ECORE_EVENT_NONE;
|
ecore_raw_event_type = ECORE_EVENT_NONE;
|
||||||
ecore_raw_event_event = NULL;
|
ecore_raw_event_event = NULL;
|
||||||
|
|
||||||
|
|
|
@ -563,6 +563,7 @@ _ecore_main_loop_iterate_internal(int once_only)
|
||||||
/* if these calls caused any buffered events to appear - deal with them */
|
/* if these calls caused any buffered events to appear - deal with them */
|
||||||
while (_ecore_main_fd_handlers_buf_call());
|
while (_ecore_main_fd_handlers_buf_call());
|
||||||
while (_ecore_main_win32_message_buf_call());
|
while (_ecore_main_win32_message_buf_call());
|
||||||
|
|
||||||
/* if ther are any - jump to processing them */
|
/* if ther are any - jump to processing them */
|
||||||
if (_ecore_event_exist())
|
if (_ecore_event_exist())
|
||||||
{
|
{
|
||||||
|
@ -673,7 +674,6 @@ _ecore_main_loop_iterate_internal(int once_only)
|
||||||
{
|
{
|
||||||
/* process signals into events .... */
|
/* process signals into events .... */
|
||||||
while (_ecore_signal_count_get()) _ecore_signal_call();
|
while (_ecore_signal_count_get()) _ecore_signal_call();
|
||||||
|
|
||||||
/* handle events ... */
|
/* handle events ... */
|
||||||
_ecore_event_call();
|
_ecore_event_call();
|
||||||
_ecore_main_fd_handlers_cleanup();
|
_ecore_main_fd_handlers_cleanup();
|
||||||
|
@ -681,6 +681,11 @@ _ecore_main_loop_iterate_internal(int once_only)
|
||||||
while (_ecore_main_fd_handlers_buf_call());
|
while (_ecore_main_fd_handlers_buf_call());
|
||||||
if (have_msg) _ecore_main_win32_message_buf_call();
|
if (have_msg) _ecore_main_win32_message_buf_call();
|
||||||
while (_ecore_main_win32_message_buf_call());
|
while (_ecore_main_win32_message_buf_call());
|
||||||
if (once_only) _ecore_idle_enterer_call();
|
/* ok - too much optimising. let's call idle enterers more often. if we
|
||||||
|
* have events that place more events or jobs etc. on the event queue
|
||||||
|
* we may never get to call an idle enterer
|
||||||
|
if (once_only)
|
||||||
|
*/
|
||||||
|
_ecore_idle_enterer_call();
|
||||||
in_main_loop--;
|
in_main_loop--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ ecore_job_init(void)
|
||||||
{
|
{
|
||||||
ecore_init();
|
ecore_init();
|
||||||
ecore_event_job_type = ecore_event_type_new();
|
ecore_event_job_type = ecore_event_type_new();
|
||||||
|
printf("ecore_event_job_type = %i\n", ecore_event_job_type);
|
||||||
_ecore_job_handler = ecore_event_handler_add(ecore_event_job_type, _ecore_job_event_handler, NULL);
|
_ecore_job_handler = ecore_event_handler_add(ecore_event_job_type, _ecore_job_event_handler, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue