Group script event declaration (suggested by Sadrul)
authorRui Guo <firemeteor.guo@gmail.com>
Thu, 4 Jun 2009 17:32:50 +0000 (5 01:32 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Thu, 4 Jun 2009 17:32:50 +0000 (5 01:32 +0800)
src/window.h

index f9840c5..f9bb72b 100644 (file)
@@ -281,8 +281,11 @@ struct win
   int    w_alt_histidx;
 #endif
 #ifdef SCRIPT
-  struct script_event resize;
-  struct script_event canresize;
+  struct
+    {
+      struct script_event resize;
+      struct script_event canresize;
+    } w_sev; /*For Script events. */
 #endif
 };