[ekg2-commit] ekg2: mouse.c (HEAD) [peres]

CVS commit cvs w toxygen.net
Sob, 6 Paź 2007, 23:15:01 CEST


Module name:	ekg2
Changes by:	peres	2007-10-06 23:14:59

Modified files:
	mouse.c

Log message:
Change windows using mouse wheel on status bar.

Index: mouse.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/ncurses/mouse.c,v
diff -d -u -r1.30 -r1.31
--- mouse.c	6 Oct 2007 18:25:40 -0000	1.30
+++ mouse.c	6 Oct 2007 21:14:58 -0000	1.31
@@ -201,6 +201,11 @@
 					ncurses_lines_adjust();
 				}
 			}
+		} else if (y > stdscr->_maxy - input_size - config_statusbar_size + 1) {
+			if (mouse_flag == EKG_SCROLLED_UP)
+				command_exec(window_current->target, window_current->session, "/window prev", 0);
+			else if (mouse_flag == EKG_SCROLLED_DOWN)
+				command_exec(window_current->target, window_current->session, "/window next", 0);
 		}
 	}
 }


Więcej informacji o liście dyskusyjnej ekg2-commit