diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 17:55:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 17:55:13 +0000 |
| commit | f7362d381b436718cc26565a09a3a38bf556586d (patch) | |
| tree | 072d03a59e552d1b90c238d1e72ae3040aa8487f | |
| parent | Merge branch 'cleanup-wayland-window-callbacks' (diff) | |
render: refresh: ensure window has been configured
| -rw-r--r-- | render.c | 2 | ||||
| -rw-r--r-- | wayland.c | 2 | ||||
| -rw-r--r-- | wayland.h | 1 |
3 files changed, 5 insertions, 0 deletions
@@ -1110,6 +1110,8 @@ render_set_title(struct terminal *term, const char *_title) void render_refresh(struct terminal *term) { + assert(term->window->is_configured); + if (term->window->frame_callback == NULL) grid_render(term); else @@ -505,6 +505,8 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface, struct wl_window *win = data; struct terminal *term = win->term; + win->is_configured = true; + if (win->configure.is_activated) term_visual_focus_in(term); else @@ -99,6 +99,7 @@ struct wl_window { tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */ + bool is_configured; struct { bool is_activated; int width; |
