mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
output: send present event from all backends
This commit is contained in:
parent
78389fe722
commit
26b9d6dbb1
4 changed files with 27 additions and 3 deletions
|
|
@ -102,7 +102,12 @@ static bool output_swap_buffers(struct wlr_output *wlr_output,
|
|||
struct wlr_x11_output *output = (struct wlr_x11_output *)wlr_output;
|
||||
struct wlr_x11_backend *x11 = output->x11;
|
||||
|
||||
return wlr_egl_swap_buffers(&x11->egl, output->surf, damage);
|
||||
if (!wlr_egl_swap_buffers(&x11->egl, output->surf, damage)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
wlr_output_send_present(wlr_output, NULL, 0, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
static const struct wlr_output_impl output_impl = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue