Pass the missing Display for triggering onsilent event.
authorRui Guo <firemeteor.guo@gmail.com>
Tue, 4 Aug 2009 16:26:05 +0000 (5 00:26 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Tue, 4 Aug 2009 16:26:05 +0000 (5 00:26 +0800)
src/window.c

index a6cc9fe..8eb1edb 100644 (file)
@@ -2055,7 +2055,7 @@ char *data;
        continue;
 #endif
 #ifdef SCRIPT
-      if (!trigger_sevent(&p->w_sev.onsilent, p))
+      if (!trigger_sevent(&p->w_sev.onsilent, display, p))
 #endif
       Msg(0, "Window %d: silence for %d seconds", p->w_number, p->w_silencewait);
     }