mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
[zr] set focus properly
This commit is contained in:
parent
4eb6f26d92
commit
1d0beeb665
@ -267,10 +267,15 @@ static int zrmenu_wnd_control(struct zr_context *ctx,
|
||||
{
|
||||
wnd_control_toggle = false;
|
||||
if (wnd_control)
|
||||
{
|
||||
zr_window_set_position(ctx, zr_vec2(zr_window_get_position(ctx).x - width - 10, zr_window_get_position(ctx).y));
|
||||
zr_window_set_focus(ctx, "Control");
|
||||
}
|
||||
else
|
||||
{
|
||||
zr_window_set_position(ctx, zr_vec2(zr_window_get_position(ctx).x + width + 10, zr_window_get_position(ctx).y));
|
||||
}
|
||||
}
|
||||
|
||||
/* Style */
|
||||
if (zr_layout_push(ctx, ZR_LAYOUT_TAB, "Metrics", ZR_MINIMIZED))
|
||||
|
Loading…
x
Reference in New Issue
Block a user