Correct the event description for activity/silient monitors.
authorRui Guo <firemeteor.guo@gmail.com>
Sat, 22 Aug 2009 16:57:17 +0000 (23 00:57 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Sat, 22 Aug 2009 16:57:17 +0000 (23 00:57 +0800)
src/script.c

index 0a3ca5a..9b477b9 100644 (file)
@@ -206,7 +206,7 @@ struct sev_description {
 
       /* Window events */
       {"window_can_resize", "", offsetof(struct win, w_sev.canresize)},
-      {"window_onactivity", "w", offsetof(struct win, w_sev.onactivity)},
+      {"window_onactivity", "dw", offsetof(struct win, w_sev.onactivity)},
       {"window_onclose", "w", offsetof(struct win, w_sev.onclose)},
       {"window_onfocus", "dw", offsetof(struct win, w_sev.onfocus)},
       /* last view of window w disappeared on display d. */
@@ -218,7 +218,7 @@ struct sev_description {
       /* window w first showed up on display d. When there are regions, it can
        * still be shown while losing focus. */
       {"window_onshow", "dw", offsetof(struct win, w_sev.onshow)},
-      {"window_onsilent", "w", offsetof(struct win, w_sev.onsilent)},
+      {"window_onsilent", "dw", offsetof(struct win, w_sev.onsilent)},
 };
 
 /* Get the event queue with the given name in the obj.  If the obj is NULL,