[prev in list] [next in list] [prev in thread] [next in thread] 

List:       w3m-dev-en
Subject:    [w3m-dev-en 00011] 0.1.4: GPM fixes
From:       w3m-dev-en () mips ! rhein-neckar ! de
Date:       2000-01-20 0:10:30
Message-ID: 865jpm$pk0$1 () bigeye ! rhein-neckar ! de
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic