only skip frames if there are visible clients that have a resize

This commit is contained in:
Leonardo Hernández Hernández 2022-03-21 21:17:58 -06:00
parent 2bc01debdc
commit ee1a72211d
No known key found for this signature in database
GPG key ID: E538897EE11B9624

6
dwl.c
View file

@ -1624,9 +1624,11 @@ rendermon(struct wl_listener *listener, void *data)
int skip = 0;
struct timespec now;
/* Render if no XDG clients have an outstanding resize. */
/* Render if no XDG clients have an outstanding resize and are visible on
* this monitor.
*/
wl_list_for_each(c, &clients, link)
skip = skip || c->resize;
skip = skip || (c->resize && VISIBLEON(c, m));
if (!skip && !wlr_scene_output_commit(m->scene_output))
return;