Skip to content

Commit

Permalink
render-manager: Use correct captures for lambdas in swapchain damage …
Browse files Browse the repository at this point in the history
…manager (WayfireWM#2037)
  • Loading branch information
soreau authored and mrsteve0924 committed Mar 2, 2024
1 parent 6ec3bfd commit 656000c
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 656000c

Please sign in to comment.