mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
backend/wayland: fix frame callback not registered
This got removed in [1]. I probably messed up the rebase.
[1]: https://github.com/swaywm/wlroots/pull/1797/files#diff-3065f86e6de87d143d4a7673a8ee3a2d
Fixes: 5d1ba0f446
("output: re-introduce atomic mode, enabled, scale and transform")
This commit is contained in:
parent
1c5ca793c0
commit
5bbb44482b
1 changed files with 8 additions and 0 deletions
|
@ -200,6 +200,14 @@ static bool output_commit(struct wlr_output *wlr_output) {
|
||||||
damage = &wlr_output->pending.damage;
|
damage = &wlr_output->pending.damage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (output->frame_callback != NULL) {
|
||||||
|
wlr_log(WLR_ERROR, "Skipping buffer swap");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
output->frame_callback = wl_surface_frame(output->surface);
|
||||||
|
wl_callback_add_listener(output->frame_callback, &frame_listener, output);
|
||||||
|
|
||||||
switch (wlr_output->pending.buffer_type) {
|
switch (wlr_output->pending.buffer_type) {
|
||||||
case WLR_OUTPUT_STATE_BUFFER_RENDER:
|
case WLR_OUTPUT_STATE_BUFFER_RENDER:
|
||||||
if (!wlr_egl_swap_buffers(&output->backend->egl,
|
if (!wlr_egl_swap_buffers(&output->backend->egl,
|
||||||
|
|
Loading…
Reference in a new issue