mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 10:14:14 +00:00
do not render frames when any surface has uncommitted changes
This commit is contained in:
parent
0a2a2bd22c
commit
0824977739
5
dwl.c
5
dwl.c
@ -638,10 +638,11 @@ destroynotify(struct wl_listener *listener, void *data)
|
||||
{
|
||||
/* Called when the surface is destroyed and should never be shown again. */
|
||||
Client *c = wl_container_of(listener, c, destroy);
|
||||
wl_list_remove(&c->commit.link);
|
||||
wl_list_remove(&c->map.link);
|
||||
wl_list_remove(&c->unmap.link);
|
||||
wl_list_remove(&c->destroy.link);
|
||||
if (c->type == XDGShell)
|
||||
wl_list_remove(&c->commit.link);
|
||||
free(c);
|
||||
}
|
||||
|
||||
@ -1247,7 +1248,7 @@ rendermon(struct wl_listener *listener, void *data)
|
||||
{
|
||||
if (c->dirty)
|
||||
{
|
||||
wlr_surface_send_frame_done(c->xdg_surface->surface, &now);
|
||||
wlr_surface_send_frame_done(WLR_SURFACE(c), &now);
|
||||
render = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user