Re: mouse event handling



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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]