aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-27 05:18:39 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-27 05:18:39 +0000
commit5639082113d839c2dee7fb7fc364afdf88aaa962 (patch)
treee9c76ebf5829b3f88a8885fc3952eff962f690b6 /server.c
parentslave: set IUTF8 (diff)
parentchangelog: mention addition of '--hold' to footclient (diff)
Merge branch 'hold-option-in-footclient'
This adds --hold to footclient. It was an oversight on my part to not add it from the beginning, when it was added to foot. Closes #17
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server.c b/server.c
index ab627877..c2778ad7 100644
--- a/server.c
+++ b/server.c
@@ -268,6 +268,9 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
const uint8_t fullscreen = *(const uint8_t *)p; p += sizeof(fullscreen);
CHECK_BUF(sizeof(uint8_t));
+ const uint8_t hold = *(const uint8_t *)p; p += sizeof(hold);
+
+ CHECK_BUF(sizeof(uint8_t));
const uint8_t login_shell = *(const uint8_t *)p; p += sizeof(login_shell);
CHECK_BUF(sizeof(argc));
@@ -304,6 +307,7 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
? strdup(title) : strdup(server->conf->title);
client->conf.app_id = strlen(app_id) > 0
? strdup(app_id) : strdup(server->conf->app_id);
+ client->conf.hold_at_exit = hold;
client->conf.login_shell = login_shell;
if (maximized)