Set DISPLAY on xwayland startup
+#define _POSIX_C_SOURCE 200112L
#include "xwayland.h"
#include <stdlib.h>
@@ -145,6 +146,8 @@ void wc_xwayland_init(struct wc_server *server) {
wl_signal_add(&server->xwayland->events.new_surface,
&server->new_xwayland_surface);
+ setenv("DISPLAY", server->xwayland->display_name, true);
+
if (server->xwayland == NULL) {
abort();
}
