Tested on X11 and Wayland via weston and seems to work closes: https://github.com/wez/wezterm/pull/5814