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

[wmx] better patch for to wmx to use mouse wheel

Richard Sharman - Thu Oct 14 06:34:01 1999

A better patch is to set quickflip True so using the wheel of the
mouse causes a quick flip.

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.

--- Buttons.C.orig	Thu Oct 14 00:16:47 1999
+++ Buttons.C	Thu Oct 14 00:17:54 1999
@@ -15,6 +15,16 @@
 	return;
     }
 
+    if (e->button == Button4 && CONFIG_CHANNEL_SURF) {
+	// wheel "up" - increase channel
+	flipChannel(False, False, True, c);
+	return ;
+    } else if (e->button == Button5 && CONFIG_CHANNEL_SURF) {
+	// wheel "down" - decrease channel
+	flipChannel(False, True, True, c);
+	return ;
+    }
+
     if (e->window == e->root) {
 
 	if (e->button == Button1 && m_channelChangeTime == 0) {



Next: