mouse event handling

Miven Dooligan mdooligan at gawab.com
Sun Oct 3 15:42:12 UTC 2004


Hi Leonard.

double click -> do_enter() still work for me, all this time.

      if ((event->type & (GPM_DOWN | GPM_DRAG | GPM_UP ))) {
          if (&panel->widget != current_dlg->current)
              change_panel ();
      }

      if ((event->type & (GPM_DOWN|GPM_DRAG))){
/*
check cursor position and scroll list
*/
      } else if ((event->type & (GPM_UP | GPM_DOUBLE)) ==
                 (GPM_UP | GPM_DOUBLE)) {
          if (event->y > 0 && event->y <= lines)
              do_enter (panel);
      }

But this _is_ a hack for xterm and X, for the cruddy mouse
reporting. I wouldn't doubt if it interfere with other
configuration. I haven't found any problem yet.



More information about the mc-devel mailing list