From ef8e9df02f666acac7934262587bc69cb83cc10b Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 7 Jun 2026 13:29:16 +0000 Subject: [PATCH 1/2] Tweak previous. --- cmd-split-window.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cmd-split-window.c b/cmd-split-window.c index 8cae6b6f..39770606 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -102,12 +102,17 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item) flags |= SPAWN_FULLSIZE; input = args_has(args, 'I'); - empty = (count == 1 && *args_string(args, 0) == '\0'); - if (!empty && (input || args_has(args, 'E'))) { + if (input) + empty = 1; + else + empty = args_has(args, 'E'); + if (empty && + count != 0 && + (count != 1 || *args_string(args, 0) != '\0')) { cmdq_error(item, "command cannot be given for empty pane"); return (CMD_RETURN_ERROR); } - if (input || empty || args_has(args, 'E')) + if (empty) flags |= SPAWN_EMPTY; if (is_floating) From 0256ee77c2d3e7a1a7aec0890e8951fadb0835df Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 7 Jun 2026 13:37:39 +0000 Subject: [PATCH 2/2] Add some additional environment variables needed for Wayland, from shbernal dot 01 at gmail dot com. --- options-table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/options-table.c b/options-table.c index 0332fa07..42e835b7 100644 --- a/options-table.c +++ b/options-table.c @@ -1029,7 +1029,8 @@ const struct options_table_entry options_table[] = { .flags = OPTIONS_TABLE_IS_ARRAY, .default_str = "DISPLAY KRB5CCNAME MSYSTEM SSH_ASKPASS SSH_AUTH_SOCK " "SSH_AGENT_PID SSH_CONNECTION WAYLAND_DISPLAY " - "WINDOWID XAUTHORITY", + "WINDOWID XAUTHORITY XDG_CURRENT_DESKTOP " + "XDG_SESSION_DESKTOP XDG_SESSION_TYPE", .text = "List of environment variables to update in the session " "environment when a client is attached." },