window: Compute initial window size correctly
We didn't take decoration size into account before.
diff --git a/clients/terminal.c b/clients/terminal.c
index 409a148..d747a63 100644
--- a/clients/terminal.c
+++ b/clients/terminal.c
@@ -804,7 +804,8 @@
m = 2 * terminal->margin;
width = columns * terminal->extents.max_x_advance + m;
height = rows * terminal->extents.height + m;
- widget_schedule_resize(terminal->widget, width, height);
+
+ frame_set_child_size(terminal->widget, width, height);
}
struct color_scheme DEFAULT_COLORS = {
@@ -2338,7 +2339,7 @@
cairo_destroy(cr);
cairo_surface_destroy(surface);
- window_schedule_resize(terminal->window, 500, 400);
+ terminal_resize(terminal, 80, 25);
return terminal;
}