fix query offsets

This commit is contained in:
Ryan Fleury
2025-04-24 20:09:18 -07:00
parent b59528edea
commit 0fbcd72a3e
2 changed files with 1 additions and 7 deletions
+1 -3
View File
@@ -8477,7 +8477,6 @@ rd_window_frame(void)
{
rd_cmd(RD_CmdKind_PushQuery,
.ui_key = sig.box->key,
.off_px = v2f32(0, sig.box->rect.y1 - sig.box->rect.y0),
.expr = push_str8f(scratch.arena, "$%I64x", tab->id));
}
else if(ui_middle_clicked(sig))
@@ -8577,8 +8576,7 @@ rd_window_frame(void)
.panel = panel->cfg->id,
.do_implicit_root = 1,
.do_lister = 1,
.ui_key = add_new_box->key,
.off_px = v2f32(0, dim_2f32(add_new_box->rect).y));
.ui_key = add_new_box->key);
}
}
}
-4
View File
@@ -1409,7 +1409,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
{
rd_cmd(RD_CmdKind_PushQuery,
.ui_key = thread_box->key,
.off_px = v2f32(0, dim_2f32(thread_box->rect).y),
.expr = ctrl_string_from_handle(scratch.arena, thread->handle));
}
if(ui_dragging(thread_sig) && !contains_2f32(thread_box->rect, ui_mouse()))
@@ -1564,7 +1563,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
{
rd_cmd(RD_CmdKind_PushQuery,
.ui_key = thread_box->key,
.off_px = v2f32(0, dim_2f32(thread_box->rect).y),
.expr = ctrl_string_from_handle(scratch.arena, thread->handle));
}
if(ui_dragging(thread_sig) && !contains_2f32(thread_box->rect, ui_mouse()))
@@ -1646,7 +1644,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
{
rd_cmd(RD_CmdKind_PushQuery,
.ui_key = bp_box->key,
.off_px = v2f32(0, dim_2f32(bp_box->rect).y),
.expr = push_str8f(scratch.arena, "$%I64x", bp->id));
}
@@ -1704,7 +1701,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
{
rd_cmd(RD_CmdKind_PushQuery,
.ui_key = pin_box->key,
.off_px = v2f32(0, dim_2f32(pin_box->rect).y),
.expr = push_str8f(scratch.arena, "$%I64x", pin->id));
}