fix menu bar focus rules breaking when hover eval focused

This commit is contained in:
Ryan Fleury
2025-03-19 16:22:42 -07:00
parent 4316325b33
commit b9ed7b3f0f
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -6342,6 +6342,7 @@ rd_window_frame(void)
U64 hover_eval_open_delay_us = 400000;
B32 hover_eval_is_open = (!popup_is_open &&
!query_is_open &&
!ws->menu_bar_focused &&
ws->hover_eval_string.size != 0 &&
ws->hover_eval_firstt_us+hover_eval_open_delay_us < ws->hover_eval_lastt_us &&
rd_state->time_in_us - ws->hover_eval_lastt_us < hover_eval_open_delay_us);
+2 -2
View File
@@ -2517,9 +2517,9 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
Rng2F32 cursor_rect =
{
ui_box_text_position(line_box).x+cursor_off_pixels-cursor_thickness/2.f,
line_box->rect.y0-params->font_size*0.25f,
line_box->rect.y0-params->font_size*0.125f,
ui_box_text_position(line_box).x+cursor_off_pixels+cursor_thickness/2.f,
line_box->rect.y1+params->font_size*0.25f,
line_box->rect.y1+params->font_size*0.125f,
};
Vec4F32 cursor_color = ui_color_from_name(str8_lit("cursor"));
if(!is_focused)