diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2020-11-22 00:12:23 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2020-11-22 18:52:28 +0000 |
| commit | 748f98e0c0e5629b24b7bb9db6baa0e40fc325b9 (patch) | |
| tree | e4bfdbfa7ecfe2af60dcbc0cb0df226a3d5ba7bc /server.c | |
| parent | Merge branch 'pgo' (diff) | |
client: add "--window-size-pixels" and "--window-size-chars" options
Diffstat (limited to 'server.c')
| -rw-r--r-- | server.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -263,6 +263,22 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data) else if (cdata.fullscreen) client->conf.startup_mode = STARTUP_FULLSCREEN; + if (cdata.width > 0 && cdata.height > 0) { + client->conf.size.type = cdata.size_type; + + switch (cdata.size_type) { + case CONF_SIZE_PX: + client->conf.size.px.width = cdata.width; + client->conf.size.px.height = cdata.height; + break; + + case CONF_SIZE_CELLS: + client->conf.size.cells.width = cdata.width; + client->conf.size.cells.height = cdata.height; + break; + } + } + client->term = term_init( &client->conf, server->fdm, server->reaper, server->wayl, "footclient", cwd, cdata.argc, argv, &term_shutdown_handler, client); |
