[Thread Prev][Thread Next]   >Date Index >Thread Index

[wmx] tiny patch to wmx-6pre1

Chris Cannam - Fri Oct 01 18:46:53 1999

If you middle-click in the top right of the screen, and then
switch to a left-click, the channel will flip down instead of
up.  If you middle-click on a window's border to push that
window to the next channel, however, you can't then switch to
the left button and push it down a channel instead.  This
patch fixes that, making left-click work in both cases.

This is a bit disappointing -- I had (until now) done no work
on wmx since wmx-5, and it'd be kind of cool to have the next
release be entirely independent of me.  Maybe you should just
skip this patch, Sec.  Well, maybe you should just include
the bit that fixes your english spelling...

Incidentally, I've had the odd crash with wmx-6pre1.  I haven't
yet tracked down the problem, let you know if I do.  Something
to do with timing of frame drawing on skeletal feedback.  The
usual stuff.


Chris
diff -Naur wmx-6pre1/Buttons.C wmx-6pre1-cc/Buttons.C
--- wmx-6pre1/Buttons.C	Fri Oct  1 17:36:51 1999
+++ wmx-6pre1-cc/Buttons.C	Fri Oct  1 17:36:33 1999
@@ -34,8 +34,7 @@
 
 	    } else if (e->button == Button1 && m_channelChangeTime != 0) {
 
-		flipChannel(False, True, False, 0);
-	    }
+		flipChannel(False, True, False, 0);	    }
 
 	} else if (e->button == Button2 && m_channelChangeTime == 0) {
 	    dConfig.scan();
@@ -47,6 +46,10 @@
 	if (e->button == Button2 && CONFIG_CHANNEL_SURF) {
 	    if (m_channelChangeTime == 0) flipChannel(True, False, False, 0);
 	    else flipChannel(False, False, False, c);
+	    return;
+	} else if (e->button == Button1 && m_channelChangeTime != 0) {
+	    // allow left-button to push down a channel --cc 19991001
+	    flipChannel(False, True, False, c);
 	    return;
 	}
 
diff -Naur wmx-6pre1/configure.in wmx-6pre1-cc/configure.in
--- wmx-6pre1/configure.in	Fri Oct  1 17:37:02 1999
+++ wmx-6pre1-cc/configure.in	Fri Oct  1 17:36:33 1999
@@ -33,7 +33,7 @@
 dnl We want to put wmx where twm lies.
 AC_PREFIX_PROGRAM(twm)
 
-AC_MSG_CHECKING([wether you still watch])
+AC_MSG_CHECKING([whether you're still watching])
 AC_MSG_RESULT([probably not :-)])
 
 dnl Now we can go home.

Next: