From 5d738661af44030ed6c5992a1094e8d343f3c42d Mon Sep 17 00:00:00 2001 From: Guo Rui Date: Tue, 14 Jul 2009 00:05:38 +0800 Subject: [PATCH] Reliably trigger onidle event. By pass internal processing on successful triggering. --- src/display.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/display.c b/src/display.c index 623b591..b00b2a9 100644 --- a/src/display.c +++ b/src/display.c @@ -4192,15 +4192,16 @@ char *data; { struct display *olddisplay; display = (struct display *)data; +#ifdef SCRIPT + if (trigger_sevent(&display->d_sev.onidle, display)) + return; +#endif debug("idle timeout\n"); if (idletimo <= 0 || idleaction.nr == RC_ILLEGAL) return; olddisplay = display; flayer = D_forecv->c_layer; fore = D_fore; -#ifdef SCRIPT - trigger_sevent(&display->d_sev.onidle, display); -#endif DoAction(&idleaction, -1); if (idleaction.nr == RC_BLANKER) return; -- 2.11.4.GIT