blob: be9e72000e7a9b707bdadf49956e354535461302 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
https://github.com/damianatorrpm/wayfire-plugin_dbus_interface/issues/47
In file included from ../subprojects/dbus/dbus_interface.cpp:45:
../subprojects/dbus/dbus_interface_backend.cpp:1131:34: error: 'core' cannot be captured because it does not have automatic storage duration
idle_call->run_once([core, idle_call] ()
^
../subprojects/dbus/dbus_interface_backend.cpp:59:24: note: 'core' declared here
wf::compositor_core_t& core = wf::get_core();
^
--- subprojects/dbus/dbus_interface_backend.cpp.orig 2020-12-25 14:04:08 UTC
+++ subprojects/dbus/dbus_interface_backend.cpp
@@ -1128,7 +1128,7 @@ handle_method_call (GDBusConnection* connection,
}
wf::wl_idle_call* idle_call = new wf::wl_idle_call;
- idle_call->run_once([core, idle_call] ()
+ idle_call->run_once([idle_call] ()
{
core.set_cursor("crosshair");
delete idle_call;
|