def METHOD_NAME(self, event_element):
    if not event_element:
        return
    # hide title on containers with window title
    if self.parent.hide_title:
        show_name = True
        if event_element.border == "normal" or event_element.type == "workspace":
            show_name = False
        else:
            event_element_parent = event_element.parent or getattr(
                self.i3.get_tree().find_by_id(event_element.id), "parent", None
            )
            if (
                event_element_parent
                and event_element_parent.layout in ("stacked", "tabbed")
                and len(event_element_parent.nodes) > 1
            ):
                show_name = False
        window_properties = {
            "title": event_element.name if show_name else None,
            "class": event_element.window_class,
            "instance": event_element.window_instance,
        }
    else:
        window_properties = {
            "title": event_element.name,
            "class": event_element.window_class,
            "instance": event_element.window_instance,
        }
    window_properties = self.compatibility(window_properties)
    if self.window_properties != window_properties:
        self.window_properties = window_properties
        self.parent.py3.update()