Change to the linux kernel coding style
[wmaker-crm.git] / WINGs / wutil.c
Commit [+]AuthorDateLineData
d214a2ca dan1999-09-09 13:46:59 +00001
d214a2ca dan1999-09-09 13:46:59 +00002/*
f5dcab06 dan2001-03-20 23:46:57 +00003 * Handle events for non-GUI based applications
d214a2ca dan1999-09-09 13:46:59 +00004 */
5
6#include "WINGsP.h"
7
688a56e8 Carlos R. Mafra2009-08-20 00:59:40 +02008void WHandleEvents()
f2f71a1f dan1999-09-10 20:13:44 +00009{
688a56e8
CM
Carlos R. Mafra2009-08-20 00:59:40 +020010 /* Check any expired timers */
11 W_CheckTimerHandlers();
d214a2ca dan1999-09-09 13:46:59 +000012
688a56e8
CM
Carlos R. Mafra2009-08-20 00:59:40 +020013 /* Do idle and timer stuff while there are no input events */
14 /* Do not wait for input here. just peek to see if input is available */
15 while (!W_HandleInputEvents(False, -1) && W_CheckIdleHandlers()) {
16 /* dispatch timer events */
17 W_CheckTimerHandlers();
18 }
d214a2ca dan1999-09-09 13:46:59 +000019
688a56e8 Carlos R. Mafra2009-08-20 00:59:40 +020020 W_HandleInputEvents(True, -1);
f2f71a1f dan1999-09-10 20:13:44 +000021
688a56e8
CM
Carlos R. Mafra2009-08-20 00:59:40 +020022 /* Check any expired timers */
23 W_CheckTimerHandlers();
d214a2ca dan1999-09-09 13:46:59 +000024}