mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
render: refresh: ensure window has been configured
This commit is contained in:
parent
f2a745cfdb
commit
f7362d381b
3 changed files with 5 additions and 0 deletions
2
render.c
2
render.c
|
|
@ -1110,6 +1110,8 @@ render_set_title(struct terminal *term, const char *_title)
|
||||||
void
|
void
|
||||||
render_refresh(struct terminal *term)
|
render_refresh(struct terminal *term)
|
||||||
{
|
{
|
||||||
|
assert(term->window->is_configured);
|
||||||
|
|
||||||
if (term->window->frame_callback == NULL)
|
if (term->window->frame_callback == NULL)
|
||||||
grid_render(term);
|
grid_render(term);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -505,6 +505,8 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface,
|
||||||
struct wl_window *win = data;
|
struct wl_window *win = data;
|
||||||
struct terminal *term = win->term;
|
struct terminal *term = win->term;
|
||||||
|
|
||||||
|
win->is_configured = true;
|
||||||
|
|
||||||
if (win->configure.is_activated)
|
if (win->configure.is_activated)
|
||||||
term_visual_focus_in(term);
|
term_visual_focus_in(term);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ struct wl_window {
|
||||||
|
|
||||||
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */
|
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */
|
||||||
|
|
||||||
|
bool is_configured;
|
||||||
struct {
|
struct {
|
||||||
bool is_activated;
|
bool is_activated;
|
||||||
int width;
|
int width;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue