Subject: Module Message for WindowShade (FvwmAudio?)

From: Andrew Veliath <[email-masked]>
Date: Thu, 16 Jan 1997 20:34:03 -0500 (EST)

This patch adds a module output message for the WindowShade
function.  Maybe the FvwmAudio maintainer could add this message (only
thing is that it requires interpretation of the message body)?

diff -ur orig/fvwm-2.0.44/fvwm/builtins.c fvwm-2.0.44/fvwm/builtins.c
--- orig/fvwm-2.0.44/fvwm/builtins.c	Thu Jan 16 20:22:41 1997
+++ fvwm-2.0.44/fvwm/builtins.c	Thu Jan 16 20:26:08 1997
@@ -418,6 +418,10 @@
 		   tmp_win->title_height + tmp_win->boundary_width,
 		   False);
     }
+    Broadcast(M_WINDOWSHADE, 2,
+	      tmp_win->w,
+	      tmp_win->buttons&WSHADE, /* zero == unshaded, nonzero == shaded */
+	      0, 0, 0, 0, 0);
 }
 #endif /* WINDOWSHADE */
 
diff -ur orig/fvwm-2.0.44/fvwm/module.h fvwm-2.0.44/fvwm/module.h
--- orig/fvwm-2.0.44/fvwm/module.h	Fri Nov  8 11:36:52 1996
+++ fvwm-2.0.44/fvwm/module.h	Thu Jan 16 20:13:22 1997
@@ -40,7 +40,8 @@
 #define M_DEFAULTICON        (1<<21)
 #define M_STRING             (1<<22)
 #define M_MINI_ICON          (1<<23)
-#define MAX_MESSAGES         24
+#define M_WINDOWSHADE        (1<<24)
+#define MAX_MESSAGES         25
 #define MAX_MASK             ((1<<MAX_MESSAGES)-1)
 
 #define HEADER_SIZE         4

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked].