aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/dwl.c b/dwl.c
index 301256b..5dd566a 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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