summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 23507bd..a9864a7 100644
--- a/ev.c
+++ b/ev.c
@@ -860,6 +860,9 @@ ev_clear_pending (W w)
static void
ev_start (W w, int active)
{
+ if (w->priority < EV_MINPRI) w->priority = EV_MINPRI;
+ if (w->priority > EV_MAXPRI) w->priority = EV_MAXPRI;
+
w->active = active;
}