aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 12:56:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 12:56:24 +0000
commitf2a745cfdb4365fad98551a990a99ec295f53b06 (patch)
treeaa3d8a264c8f23d5f4a58ea495d85ebde31b5240 /terminal.c
parentrender: render_resize(): don't do anything if width or height is 0 (diff)
parentrender: remove 'refresh' from render_resize() (diff)
Merge branch 'cleanup-wayland-window-callbacks'
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index b31d3867..88a4374a 100644
--- a/terminal.c
+++ b/terminal.c
@@ -654,7 +654,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
goto err;
/* Initialize the Wayland window backend */
- if ((term->window = wayl_win_init(wayl)) == NULL)
+ if ((term->window = wayl_win_init(term)) == NULL)
goto err;
/* Let the Wayland backend know we exist */
@@ -679,7 +679,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
/* Don't go below a single cell */
width = max(width, term->cell_width);
height = max(height, term->cell_height);
- render_resize(term, width, height, true);
+ render_resize(term, width, height);
return term;