client: let DISPLAY flow through
Submitted by Ray Strode [halfline]
Link to original bug (#746359)
Description
gnome-terminal currently unsets DISPLAY before forking its child, and then recreates it from gdk_display_get_name when constructing the child environment.
This is fine for the X11 backend, but poses a problem for wayland. wayland clients don't need DISPLAY set, but X clients using Xwayland do. The code to reconstruct DISPLAY when constructing the child environment isn't run for the wayland backend (and wouldn't work on the wayland backend anyway).
This commit keeps DISPLAY set, so X clients started from gnome-terminal work when using the wayland backend.
Resolution: RESOLVED FIXED