all repos — openbox @ 9e18dbe0eed4f23909a0566dbc8b55b1bac470b8

openbox fork - make it a bit more like ryudo

friendly check for the timer's delay being > 0
Dana Jansens danakj@orodu.net
commit

9e18dbe0eed4f23909a0566dbc8b55b1bac470b8

parent

0be98fee4743c795b06aa23881b82eff5bab3ef6

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M openbox/mainloop.copenbox/mainloop.c

@@ -530,6 +530,9 @@ GEqualFunc cmp,

GDestroyNotify notify) { ObMainLoopTimer *t = g_new(ObMainLoopTimer, 1); + + g_assert(microseconds > 0); /* if it's 0 it'll cause an infinite loop */ + t->delay = microseconds; t->func = handler; t->data = data;