X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/blobdiff_plain/59fc927dc9f183802621138534fa6eaafe5593ba..688a56e8ab67b56550e2874d9d7423f0d435bfd9:/WINGs/wutil.c diff --git a/WINGs/wutil.c b/WINGs/wutil.c dissimilarity index 84% index f28c459c..4becac9e 100644 --- a/WINGs/wutil.c +++ b/WINGs/wutil.c @@ -1,29 +1,24 @@ - - -/* - * Handle events for non-GUI based applications - */ - -#include "WINGsP.h" - - -void -WHandleEvents() -{ - /* Check any expired timers */ - W_CheckTimerHandlers(); - - /* Do idle and timer stuff while there are no input events */ - /* Do not wait for input here. just peek to see if input is available */ - while (!W_HandleInputEvents(False, -1) && W_CheckIdleHandlers()) { - /* dispatch timer events */ - W_CheckTimerHandlers(); - } - - W_HandleInputEvents(True, -1); - - /* Check any expired timers */ - W_CheckTimerHandlers(); -} - - + +/* + * Handle events for non-GUI based applications + */ + +#include "WINGsP.h" + +void WHandleEvents() +{ + /* Check any expired timers */ + W_CheckTimerHandlers(); + + /* Do idle and timer stuff while there are no input events */ + /* Do not wait for input here. just peek to see if input is available */ + while (!W_HandleInputEvents(False, -1) && W_CheckIdleHandlers()) { + /* dispatch timer events */ + W_CheckTimerHandlers(); + } + + W_HandleInputEvents(True, -1); + + /* Check any expired timers */ + W_CheckTimerHandlers(); +}