diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-27 05:18:39 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-27 05:18:39 +0000 |
| commit | 5639082113d839c2dee7fb7fc364afdf88aaa962 (patch) | |
| tree | e9c76ebf5829b3f88a8885fc3952eff962f690b6 /server.c | |
| parent | slave: set IUTF8 (diff) | |
| parent | changelog: 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
