Commit 55bfd2ef authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Allow installing the event handler multiple times.

parent 25023c13
......@@ -186,7 +186,7 @@ static inline void free_event_data( XEvent *event )
void X11DRV_register_event_handler( int type, x11drv_event_handler handler, const char *name )
{
assert( type <= MAX_EVENT_HANDLERS );
assert( !handlers[type] );
assert( !handlers[type] || handlers[type] == handler );
handlers[type] = handler;
event_names[type] = name;
TRACE("registered handler %p for event %d %s\n", handler, type, debugstr_a(name) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment