Ticket #54: dlg_mouse_event-skip-widget-w-o-action.patch

File dlg_mouse_event-skip-widget-w-o-action.patch, 474 bytes (added by sfionov, 15 years ago)
  • src/dialog.c

    diff --git a/src/dialog.c b/src/dialog.c
    index 50e1efa..3290d50 100644
    a b dlg_mouse_event (Dlg_head * h, Gpm_Event * event) 
    764764        new_event.x -= widget->x; 
    765765        new_event.y -= widget->y; 
    766766 
    767         if (!widget->mouse) 
    768             return MOU_NORMAL; 
    769  
    770         return (*widget->mouse) (&new_event, widget); 
     767        if (widget->mouse) 
     768            return (*widget->mouse) (&new_event, widget); 
    771769    } while (item != starting_widget); 
    772770 
    773771    return MOU_NORMAL;