mouse event handling

Miven Dooligan mdooligan at gawab.com
Sat Oct 2 13:17:23 UTC 2004


I am having to make this tweak in screen.c
for 3 years since I keep playing with mouse stuff,
otherwise button down in one panel and button up in
other panel doesn't work.

@@ -2296,11 +2411,22 @@
      }

      event->y -= 2;
-    if ((event->type & (GPM_DOWN|GPM_DRAG))){
+    if ((event->type & (GPM_DOWN|GPM_DRAG|GPM_UP))){

         if (panel != (WPanel *) current_dlg->current->widget)
             change_panel ();

     }

Anyone know a reason why button up shouldn't know its location?

Peace.





More information about the mc-devel mailing list