Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render-manager: Use correct captures for lambdas in swapchain damage manager #2037

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/output/render-manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct swapchain_damage_manager_t
wlr_damage_ring_init(&damage_ring);
update_damage_ring_bounds();

on_needs_frame.set_callback([&] (void*) { schedule_repaint(); });
on_needs_frame.set_callback([=] (void*) { schedule_repaint(); });
on_damage.set_callback([&] (void *data)
{
auto ev = static_cast<wlr_output_event_damage*>(data);
Expand All @@ -109,7 +109,7 @@ struct swapchain_damage_manager_t
}
});

on_request_state.set_callback([&] (void *data)
on_request_state.set_callback([=] (void *data)
{
auto ev = static_cast<wlr_output_event_request_state*>(data);
wlr_output_commit_state(output->handle, ev->state);
Expand All @@ -118,7 +118,7 @@ struct swapchain_damage_manager_t
schedule_repaint();
});

on_gamma_changed.set_callback([&] (void *data)
on_gamma_changed.set_callback([=] (void *data)
{
auto event = (const wlr_gamma_control_manager_v1_set_gamma_event*)data;
if (event->output == this->output)
Expand Down
Loading