summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-10-06 23:36:28 +0200
committerBoris Faure <billiob@gmail.com>2019-10-06 23:36:28 +0200
commit424ddba2c8a29aa959c440b692715dbf33c9ff52 (patch)
tree3a1f2d59ca7584280c34a3975d9e2ea957fc070d /src
parenta32b9cee884cf2a44b102a0c05eee2f9f26f7933 (diff)
splits: show missed bells when a title tab is shown
Diffstat (limited to 'src')
-rw-r--r--src/bin/win.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index be771e8..e7e3958 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -536,7 +536,8 @@ _solo_bell(Term_Container *tc,
536 solo = (Solo*) tc; 536 solo = (Solo*) tc;
537 term = solo->term; 537 term = solo->term;
538 538
539 term->missed_bell = EINA_TRUE; 539 if (!tc->is_focused)
540 term->missed_bell = EINA_TRUE;
540 541
541 if (!tc->wn->config->disable_visual_bell) 542 if (!tc->wn->config->disable_visual_bell)
542 { 543 {
@@ -548,6 +549,12 @@ _solo_bell(Term_Container *tc,
548 elm_layout_signal_emit(term->base, "bell,ring", "terminology"); 549 elm_layout_signal_emit(term->base, "bell,ring", "terminology");
549 } 550 }
550 } 551 }
552 if ((term->missed_bell) && (term->config->show_tabs)
553 && (tc->parent->type == TERM_CONTAINER_TYPE_SPLIT))
554 {
555 edje_object_signal_emit(term->bg, "tab,bell,on", "terminology");
556 }
557 edje_object_message_signal_process(term->bg);
551 tc->parent->bell(tc->parent, tc); 558 tc->parent->bell(tc->parent, tc);
552} 559}
553 560
@@ -599,6 +606,11 @@ _solo_focus(Term_Container *tc, Term_Container *relative)
599 return; 606 return;
600 607
601 term->missed_bell = EINA_FALSE; 608 term->missed_bell = EINA_FALSE;
609 if ((term->config->show_tabs)
610 && (tc->parent->type == TERM_CONTAINER_TYPE_SPLIT))
611 {
612 edje_object_signal_emit(term->bg, "tab,bell,off", "terminology");
613 }
602 614
603 if (tc->parent != relative) 615 if (tc->parent != relative)
604 { 616 {
@@ -626,6 +638,7 @@ _solo_focus(Term_Container *tc, Term_Container *relative)
626 638
627 if (term->missed_bell) 639 if (term->missed_bell)
628 term->missed_bell = EINA_FALSE; 640 term->missed_bell = EINA_FALSE;
641 edje_object_message_signal_process(term->bg);
629} 642}
630 643
631static Eina_Bool 644static Eina_Bool