use wlr_scene_output_send_frame_done()
This commit is contained in:
parent
52a33a2f1e
commit
2b2f72d7c2
17
dwl.c
17
dwl.c
|
@ -262,7 +262,6 @@ static void pointerfocus(Client *c, struct wlr_surface *surface,
|
||||||
static void printstatus(void);
|
static void printstatus(void);
|
||||||
static void quit(const Arg *arg);
|
static void quit(const Arg *arg);
|
||||||
static void quitsignal(int signo);
|
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 rendermon(struct wl_listener *listener, void *data);
|
||||||
static void resize(Client *c, int x, int y, int w, int h, int interact);
|
static void resize(Client *c, int x, int y, int w, int h, int interact);
|
||||||
static void run(char *startup_cmd);
|
static void run(char *startup_cmd);
|
||||||
|
@ -1605,13 +1604,6 @@ quitsignal(int signo)
|
||||||
quit(NULL);
|
quit(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
rendered(struct wlr_surface *surface, int sx, int sy, void *data)
|
|
||||||
{
|
|
||||||
struct timespec *now = data;
|
|
||||||
wlr_surface_send_frame_done(surface, now);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
rendermon(struct wl_listener *listener, void *data)
|
rendermon(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
|
@ -1631,14 +1623,7 @@ rendermon(struct wl_listener *listener, void *data)
|
||||||
|
|
||||||
/* Let clients know a frame has been rendered */
|
/* Let clients know a frame has been rendered */
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
wl_list_for_each(c, &clients, link)
|
wlr_scene_output_send_frame_done(m->scene_output, &now);
|
||||||
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);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue