diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-11-30 19:14:37 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-11-30 19:14:37 +0000 |
| commit | f55e65808c86d4a4c49e0777af6ecae7d3a107df (patch) | |
| tree | 57d244881467b30488f384a7d5e38c839ec64830 /server.c | |
| parent | selection: offer clipboard content in more mime types (diff) | |
| parent | config: replace union in config struct with simple width/height members (diff) | |
Merge branch 'simplify-config-struct'
Diffstat (limited to 'server.c')
| -rw-r--r-- | server.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -265,18 +265,8 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data) 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->conf.size.width = cdata.width; + client->conf.size.height = cdata.height; } client->term = term_init( |
