
# note- this patch has been applied to the sources already
# Gilbert Ashley <amigo@ibiblio.org>
# it fixes compile errors and enables WindowMaker DockApp feature.


--- ./wmmixer.cc.00	1998-09-05 17:11:33.000000000 +0200
+++ ./wmmixer.cc	2007-02-18 20:31:28.000000000 +0100
@@ -11,13 +11,13 @@
 // --------------------------------------
 
 // User defines - standard
-#define WINDOWMAKER false
+#define WINDOWMAKER true
 #define USESHAPE    false
 #define AFTERSTEP   false
 #define NORMSIZE    64
 #define ASTEPSIZE   56
 #define NAME        "wmmixer"
-#define CLASS       "WMMixer"
+#define CLASS       "DockApp"
 
 // User defines - custom
 #define MIXERDEV    "/dev/mixer"
@@ -503,12 +503,12 @@
    }
 }
 
-void checkVol(bool forced=true){
+void checkVol(bool){
    mixctl->readVol(channel[curchannel], true);
    int nl=mixctl->readLeft(channel[curchannel]);
    int nr=mixctl->readRight(channel[curchannel]);
    bool nrec=mixctl->readRec(channel[curchannel], true);
-   if(forced){
+   if(1){
       curleft=nl;
       curright=nr;
       currec=nrec;
--- ./Imakefile.00	2007-02-18 20:27:55.000000000 +0100
+++ ./Imakefile	2007-02-18 20:30:02.000000000 +0100
@@ -1,3 +1,5 @@
+CC = g++
+
 #ifdef NetBSDArchitecture
 OSSAUDIO = -lossaudio
 #else

