- if (mi->xlmft->hack_handle_events)
- {
- mi->xlmft->hack_handle_events (mi, event);
- /* Since xlockmore hacks don't tell us whether they handled the
- event, assume they handled buttons (so we don't beep) but that
- they didn't handle anything else (so that "q" still quits).
- */
- return (event->xany.type == ButtonPress);
- }
+ if (mi && mi->xlmft->hack_handle_events)
+ return mi->xlmft->hack_handle_events (mi, event);