# window:focus() {{since('20230320-124340-559cb7b0')}} Attempts to focus and activate the window. |OS |Supported?| |---------------|------------------------| |macOS |Yes | |Windows |Yes | |X11 |Yes | |Wayland |Wayland does not allow this action|