controls: hide them when creating new tab or split

This commit is contained in:
Boris Faure 2020-03-25 23:27:18 +01:00
parent 864a78ed5e
commit 2dc65380f7
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,7 @@ _cb_ct_new(void *data,
void *_event EINA_UNUSED)
{
Controls_Ctx *ctx = data;
controls_hide(ctx, EINA_TRUE);
main_new(ctx->term);
}
@ -110,6 +111,7 @@ _cb_ct_split_v(void *data,
void *_event EINA_UNUSED)
{
Controls_Ctx *ctx = data;
controls_hide(ctx, EINA_TRUE);
split_vertically(ctx->win, ctx->term, NULL);
}
@ -119,6 +121,7 @@ _cb_ct_split_h(void *data,
void *_event EINA_UNUSED)
{
Controls_Ctx *ctx = data;
controls_hide(ctx, EINA_TRUE);
split_horizontally(ctx->win, ctx->term, NULL);
}