fix thread-in-code-view right-clicks, after moving to more stable ctrl entity evaluation

This commit is contained in:
Ryan Fleury
2025-04-28 16:20:41 -07:00
parent 57c331537b
commit 33479ec732
+2 -2
View File
@@ -1422,7 +1422,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
{ {
rd_cmd(RD_CmdKind_PushQuery, rd_cmd(RD_CmdKind_PushQuery,
.ui_key = thread_box->key, .ui_key = thread_box->key,
.expr = ctrl_string_from_handle(scratch.arena, thread->handle)); .expr = push_str8f(scratch.arena, "query:control.%S", ctrl_string_from_handle(scratch.arena, thread->handle)));
} }
if(ui_dragging(thread_sig) && !contains_2f32(thread_box->rect, ui_mouse())) if(ui_dragging(thread_sig) && !contains_2f32(thread_box->rect, ui_mouse()))
{ {
@@ -1576,7 +1576,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
{ {
rd_cmd(RD_CmdKind_PushQuery, rd_cmd(RD_CmdKind_PushQuery,
.ui_key = thread_box->key, .ui_key = thread_box->key,
.expr = ctrl_string_from_handle(scratch.arena, thread->handle)); .expr = push_str8f(scratch.arena, "query:control.%S", ctrl_string_from_handle(scratch.arena, thread->handle)));
} }
if(ui_dragging(thread_sig) && !contains_2f32(thread_box->rect, ui_mouse())) if(ui_dragging(thread_sig) && !contains_2f32(thread_box->rect, ui_mouse()))
{ {