restrict mouse events to widget