aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 30ccf1d..1d8a334 100644
--- a/dwl.c
+++ b/dwl.c
@@ -261,6 +261,11 @@ typedef struct {
} Rule;
typedef struct {
+ const char *variable;
+ const char *value;
+} Env;
+
+typedef struct {
struct wlr_scene_tree *scene;
struct wlr_session_lock_v1 *lock;
@@ -2580,6 +2585,8 @@ run(char *startup_cmd)
if (!socket)
die("startup: display_add_socket_auto");
setenv("WAYLAND_DISPLAY", socket, 1);
+ for (size_t i = 0; i < LENGTH(envs); i++)
+ setenv(envs[i].variable, envs[i].value, 1);
/* Start the backend. This will enumerate outputs and inputs, become the DRM
* master, etc */
@@ -2599,6 +2606,9 @@ run(char *startup_cmd)
}
}
+ /* Added display setup for xwayland-satellite */
+ setenv("DISPLAY", ":0", 1);
+
drawbars();
/* At this point the outputs are initialized, choose initial selmon based on