From 973a3ab21fdac1160bdba8ce537457b2ec44db8d Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Wed, 29 Nov 2023 08:02:23 -0700 Subject: [PATCH] render-manager: Use correct captures for lambdas in swapchain damage manager --- src/output/render-manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output/render-manager.cpp b/src/output/render-manager.cpp index 860c2cf6f..c8bc98251 100644 --- a/src/output/render-manager.cpp +++ b/src/output/render-manager.cpp @@ -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(data); @@ -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(data); wlr_output_commit_state(output->handle, ev->state); @@ -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)