mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-02 20:18:12 +00:00
fix menu bar focus rules breaking when hover eval focused
This commit is contained in:
@@ -6342,6 +6342,7 @@ rd_window_frame(void)
|
|||||||
U64 hover_eval_open_delay_us = 400000;
|
U64 hover_eval_open_delay_us = 400000;
|
||||||
B32 hover_eval_is_open = (!popup_is_open &&
|
B32 hover_eval_is_open = (!popup_is_open &&
|
||||||
!query_is_open &&
|
!query_is_open &&
|
||||||
|
!ws->menu_bar_focused &&
|
||||||
ws->hover_eval_string.size != 0 &&
|
ws->hover_eval_string.size != 0 &&
|
||||||
ws->hover_eval_firstt_us+hover_eval_open_delay_us < ws->hover_eval_lastt_us &&
|
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);
|
rd_state->time_in_us - ws->hover_eval_lastt_us < hover_eval_open_delay_us);
|
||||||
|
|||||||
@@ -2517,9 +2517,9 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
|||||||
Rng2F32 cursor_rect =
|
Rng2F32 cursor_rect =
|
||||||
{
|
{
|
||||||
ui_box_text_position(line_box).x+cursor_off_pixels-cursor_thickness/2.f,
|
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,
|
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"));
|
Vec4F32 cursor_color = ui_color_from_name(str8_lit("cursor"));
|
||||||
if(!is_focused)
|
if(!is_focused)
|
||||||
|
|||||||
Reference in New Issue
Block a user