[w3m-dev-en 00022] Re: mouse_end()?

From: Christian Weisgerber (w3m-dev-en@mips.rhein-neckar.de)
Date: Sun Jan 23 2000 - 17:16:33 CST


I wrote:

> In what contexts is mouse_end() called?

Juergen Lock just pointed me to the MOUSE_TOGGLE function, msToggle().
Shouldn't this in fact enable/disable the mouse?

BTW, what is the difference between
  mouse_init() <-> mouse_active()
  mouse_end() <-> mouse_inactive()
intended to be?

--- main.c.orig Mon Jan 24 00:07:48 2000
+++ main.c Mon Jan 24 00:08:20 2000
@@ -3058,8 +3058,14 @@
 {
   if (use_mouse) {
     use_mouse = NIL;
+#ifdef MOUSE
+ mouse_end();
+#endif
   } else {
     use_mouse = T;
+#ifdef MOUSE
+ mouse_active();
+#endif
   }
   displayBuffer(Currentbuf,B_FORCE_REDRAW);
 }

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



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