def handle_event(self, event):
        """Handle an X11 event by forwarding it to the right target"""
        event_type = event.__class__.__name__
        if event_type.endswith("Event"):
            event_type = event_type[:-5]
        targets = self._get_target_chain(event_type, event)
        logger.debug("X11 event: %s (targets: %s)", event_type, targets)
        for target in targets:
            ret = target(event)
            if not ret:
                break
Handle an X11 event by forwarding it to the right target
libqtile/backend/x11/core.py