mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
only skip frames if there are visible clients that have a resize
This commit is contained in:
parent
40db9c88ea
commit
a7f7777907
1 changed files with 4 additions and 2 deletions
6
dwl.c
6
dwl.c
|
@ -1497,9 +1497,11 @@ rendermon(struct wl_listener *listener, void *data)
|
||||||
int skip = 0;
|
int skip = 0;
|
||||||
struct timespec now;
|
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)
|
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))
|
if (!skip && !wlr_scene_output_commit(m->scene_output))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue