Solution from the Ettercap wiki on github:
> # X issue when ettercap is started with sudo and GTK UI
>
> Solution
>
> There is a easy fix to this issue. **Run the following command in the user's context**.
>
>
> $ xhost local:root
>
You need to execute the above command as user.