diff options
author | Leonardo Hernandez Hernandez <leohdz172@outlook.com> | 2021-09-24 16:07:06 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-03-11 15:05:49 -0600 |
commit | 2b2f72d7c287fe3255dfa8f7db13f81c6a534a57 (patch) | |
tree | d23059df5762c5410192370d344042e67430e422 /dwl.c | |
parent | 52a33a2f1ec91c11d0fca92342b40b874d110652 (diff) |
use wlr_scene_output_send_frame_done()
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -262,7 +262,6 @@ static void pointerfocus(Client *c, struct wlr_surface *surface, static void printstatus(void); static void quit(const Arg *arg); static void quitsignal(int signo); -static void rendered(struct wlr_surface *surface, int sx, int sy, void *data); static void rendermon(struct wl_listener *listener, void *data); static void resize(Client *c, int x, int y, int w, int h, int interact); static void run(char *startup_cmd); @@ -1606,13 +1605,6 @@ quitsignal(int signo) } void -rendered(struct wlr_surface *surface, int sx, int sy, void *data) -{ - struct timespec *now = data; - wlr_surface_send_frame_done(surface, now); -} - -void rendermon(struct wl_listener *listener, void *data) { /* This function is called every time an output is ready to display a frame, @@ -1631,14 +1623,7 @@ rendermon(struct wl_listener *listener, void *data) /* Let clients know a frame has been rendered */ clock_gettime(CLOCK_MONOTONIC, &now); - wl_list_for_each(c, &clients, link) - if (VISIBLEON(c, c->mon)) - client_for_each_surface(c, rendered, &now); - - for (i = 0; i < LENGTH(m->layers); i++) - wl_list_for_each(layer, &m->layers[i], link) - wlr_layer_surface_v1_for_each_surface(layer->layer_surface, rendered, &now); - + wlr_scene_output_send_frame_done(m->scene_output, &now); } void |