mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
client/server: implement '--hold' in footclient
This commit is contained in:
parent
e310487dae
commit
3943cad7ed
2 changed files with 17 additions and 0 deletions
4
server.c
4
server.c
|
|
@ -267,6 +267,9 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
|
|||
CHECK_BUF(sizeof(uint8_t));
|
||||
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);
|
||||
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue