[w3m-dev-en 00011] 0.1.4: GPM fixes

From: w3m-dev-en@mips.rhein-neckar.de
Date: Wed Jan 19 2000 - 18:10:30 CST


Hi,

1. conn.eventMask is set to 0 which disables reception of all types
   of events. Effectively, this disables GPM support altogether.
   Probably "~0" was intended, to enable reception of all types of
   events.

2. conn.maxMod is set to ~0, which means that events with a modifier
   key (shift, control, etc.) set are also sent to w3m. Since w3m
   doesn't do anything with these events, they should rather be
   passed on to other clients. Changing this to "conn.maxMod = 0"
   will for example allow the use of the mouse in w3m *and* mouse
   clicks with shift held down for console cut-and-paste.

Patch:

--- terms.c.orig Wed Jan 19 17:18:08 2000
+++ terms.c Wed Jan 19 17:53:06 2000
@@ -1465,9 +1465,9 @@
     is_xterm = 1;
   }
   else {
- conn.eventMask = 0;
+ conn.eventMask = ~0;
     conn.defaultMask = 0;
- conn.maxMod = ~0;
+ conn.maxMod = 0;
     conn.minMod = 0;
     Gpm_Open(&conn,0); /* don't care even if it fails */
     gpm_handler = gpm_process_mouse;

-- 
Christian "naddy" Weisgerber                  naddy@mips.rhein-neckar.de



This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT