about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-20 21:03:59 +0000
committerJames Booth <boothj5@gmail.com>2012-11-20 21:03:59 +0000
commita3da391bfe17a4efac7d2f7dc23b844d1a9d652f (patch)
tree24813c088b056a8d8b4e7fc1eac27cc518519507
parentdda57fcd8eb393369cee1665e725bbefd68e7ea6 (diff)
downloadprofani-tty-a3da391bfe17a4efac7d2f7dc23b844d1a9d652f.tar.gz
Listen only for mouse events we're interested in
-rw-r--r--src/windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.c b/src/windows.c
index 8cf3adc7..8913c963 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -107,7 +107,7 @@ gui_init(void)
     initscr();
     cbreak();
     keypad(stdscr, TRUE);
-    mousemask(ALL_MOUSE_EVENTS, NULL);
+    mousemask(BUTTON2_PRESSED | BUTTON4_PRESSED, NULL);
     mouseinterval(5);
 
     if (has_colors()) {