------- FilterEv.c ------- --- /tmp/geta26428 Sat Jun 18 18:37:18 2005 +++ /tmp/getb26428 Sat Jun 18 18:37:18 2005 @@ -54,10 +54,12 @@ other dealings in this Software without prior written authorization from the X Consortium. */ +#pragma ident "%W% %G% %U% SunSoft" + #define NEED_EVENTS #include "Xlibint.h" #include "Xlcint.h" #if __STDC__ @@ -87,20 +89,29 @@ if (ev->type >= LASTEvent) mask = 0; else mask = _Xevent_to_mask[ev->type]; +/* +4041914. No locking is necessary. LockDisplay(ev->xany.display); +*/ for (p = ev->xany.display->im_filters; p != NULL; p = p->next) { if (win == p->window) { if ((mask & p->event_mask) || (ev->type >= p->start_type && ev->type <= p->end_type)) { ret = (*(p->filter))(ev->xany.display, p->window, ev, p->client_data); +/* +4041914. UnlockDisplay(ev->xany.display); +*/ return(ret); } } } +/* +4041914. UnlockDisplay(ev->xany.display); +*/ return(False); }