Change to the linux kernel coding style
[wmaker-crm.git] / WINGs / wutil.c
1
2 /*
3 * Handle events for non-GUI based applications
4 */
5
6 #include "WINGsP.h"
7
8 void WHandleEvents()
9 {
10 /* Check any expired timers */
11 W_CheckTimerHandlers();
12
13 /* 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 }
19
20 W_HandleInputEvents(True, -1);
21
22 /* Check any expired timers */
23 W_CheckTimerHandlers();
24 }