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

[wmx] patch for to wmx to use mouse wheel

Richard Sharman - Thu Oct 14 05:58:23 1999

With this patch, if you have a wheel mouse, 
* moving the wheel in the root window selects the next or previous
  channel
* moving it in the tab of a window moves that window up or down a 
  channel.

--- /home/system/wmx-orig/Buttons.C	Sun Jul 25 22:28:22 1999
+++ Buttons.C	Wed Oct 13 23:37:14 1999
@@ -15,6 +15,16 @@
 	return;
     }
 
+    if (e->button == Button4 && CONFIG_CHANNEL_SURF) {
+	// wheel "up" - increase channel
+	flipChannel(False, False, False, c);
+	return ;
+    } else if (e->button == Button5 && CONFIG_CHANNEL_SURF) {
+	// wheel "down" - decrease channel
+	flipChannel(False, True, False, c);
+	return ;
+    }
+
     if (e->window == e->root) {
 
 	if (e->button == Button1 && m_channelChangeTime == 0) {


Next: