You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/netxs/desktopio/events.hpp
+24-22Lines changed: 24 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -32,17 +32,17 @@ namespace netxs::events
32
32
{
33
33
// Forward execution order: Execute concrete event first. Preserve subscription order. Forward means from particular to general: 1. event::group::item, 2. event::group::any
34
34
// Reverse execution order: Execute global events first. Preserve subscription order. Reverse means from general to particular: 1. event::group::any, 2. event::group::item
35
-
staticconstexprauto counter = __COUNTER__ + 1;
36
-
staticconstexprauto release = __COUNTER__ - counter; // events: Run forwrad handlers with fixed param.
37
-
staticconstexprauto preview = __COUNTER__ - counter; // events: Run reverse handlers with fixed a param intended to change.
38
-
staticconstexprauto request = __COUNTER__ - counter; // events: Run forwrad a handler that provides the current value of the param. To avoid being overridden, the handler should be the only one.
39
-
staticconstexprauto anycast = __COUNTER__ - counter; // events: Run reverse handlers along the entire visual tree.
40
-
staticconstexprauto general = __COUNTER__ - counter; // events: Run forwrad handlers for all objects.
41
-
staticconstexprauto mousepreview = __COUNTER__ - counter; // events: Run in subscription order for all objects.
42
-
staticconstexprauto mouserelease = __COUNTER__ - counter; // events: Run in subscription order for all objects.
43
-
staticconstexprauto keybdpreview = __COUNTER__ - counter; // events: Run in subscription order for all objects.
44
-
staticconstexprauto keybdrelease = __COUNTER__ - counter; // events: Run in subscription order for all objects.
staticconstexprauto release = __COUNTER__ - counter; // events: Run forwrad handlers with fixed param.
37
+
staticconstexprauto preview = __COUNTER__ - counter; // events: Run reverse handlers with fixed a param intended to change.
38
+
staticconstexprauto request = __COUNTER__ - counter; // events: Run forwrad a handler that provides the current value of the param. To avoid being overridden, the handler should be the only one.
39
+
staticconstexprauto anycast = __COUNTER__ - counter; // events: Run reverse handlers along the entire visual tree.
40
+
staticconstexprauto general = __COUNTER__ - counter; // events: Run forwrad handlers for all objects.
41
+
staticconstexprauto mousepreview = __COUNTER__ - counter; // events: Run in subscription order for object tree.
42
+
staticconstexprauto mouserelease = __COUNTER__ - counter; // events: Run in subscription order for object tree.
43
+
staticconstexprauto keybdpreview = __COUNTER__ - counter; // events: Run in subscription order for focused objects.
44
+
staticconstexprauto keybdrelease = __COUNTER__ - counter; // events: Run in subscription order for focused objects.
Copy file name to clipboardExpand all lines: src/netxs/desktopio/input.hpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2202,7 +2202,7 @@ namespace netxs::input
2202
2202
auto [chords, is_preview] = input::bindings::get_chords(chord_str);
2203
2203
if (chords.size())
2204
2204
{
2205
-
auto script_ptr = ptr::shared<script_ref>(boss.scripting_context, script_body);
2205
+
auto script_ptr = ptr::shared<script_ref>(boss.indexer, boss.scripting_context, script_body);
2206
2206
auto reset_handler = !(script_ptr->script_body_ptr && script_ptr->script_body_ptr->size());
2207
2207
for (auto& binary_chord : chords) if (binary_chord.size()) // Scripts always store their sensors at the boss side, since the lifetime of base::scripting_context depends on the boss.
0 commit comments