mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-17 05:34:19 -04:00
Use wlr_scene_output_send_frame_done
This commit is contained in:
parent
7a7325c0ee
commit
77a3f6bb0c
1 changed files with 1 additions and 13 deletions
14
output.c
14
output.c
|
|
@ -43,18 +43,6 @@
|
||||||
#include "xwayland.h"
|
#include "xwayland.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
|
||||||
send_frame_done_iterator(struct wlr_surface *surface, int lx, int ly, void *user_data)
|
|
||||||
{
|
|
||||||
const struct timespec *t = user_data;
|
|
||||||
|
|
||||||
if (!wlr_surface_has_buffer(surface)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
wlr_surface_send_frame_done(surface, t);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
output_enable(struct cg_output *output)
|
output_enable(struct cg_output *output)
|
||||||
{
|
{
|
||||||
|
|
@ -110,7 +98,7 @@ handle_output_frame(struct wl_listener *listener, void *data)
|
||||||
|
|
||||||
struct timespec now = {0};
|
struct timespec now = {0};
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
wlr_scene_output_for_each_surface(output->scene_output, send_frame_done_iterator, &now);
|
wlr_scene_output_send_frame_done(output->scene_output, &now);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue