Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
schedule an output frame after a suface acking a configure
Browse files Browse the repository at this point in the history
this to make sure the change of `c->resize` is taken into account
  • Loading branch information
sevz17 committed Dec 10, 2022
1 parent ce2aec0 commit df30c95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,11 @@ ackconfigurenotify(struct wl_listener *listener, void *data)
struct wlr_xdg_surface_configure *configure = data;

/* mark a pending resize as completed */
if (c->resize <= configure->serial)
if (c->resize <= configure->serial) {
c->resize = 0;
if (VISIBLEON(c, c->mon))
wlr_output_schedule_frame(c->mon->wlr_output);
}
}

void
Expand Down

0 comments on commit df30c95

Please sign in to comment.