summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/themes/default.edc21
-rw-r--r--src/bin/win.c15
2 files changed, 35 insertions, 1 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index ec3d475..c98e91d 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -7,6 +7,12 @@ color_classes {
7#include "default_colors.in.edc" 7#include "default_colors.in.edc"
8} 8}
9#endif 9#endif
10#ifndef BG_COLOR_BELL_NO_ALPHA
11#define BG_COLOR_BELL_NO_ALPHA BG_COLOR_NO_ALPHA
12#endif
13#ifndef FG_COLOR_BELL_NO_ALPHA
14#define FG_COLOR_BELL_NO_ALPHA 255 153 51
15#endif
10 16
11efl_version: 1 20; 17efl_version: 1 20;
12 18
@@ -1414,6 +1420,21 @@ collections {
1414 inherit: "default" 0.0; 1420 inherit: "default" 0.0;
1415 visible: 1; 1421 visible: 1;
1416 } 1422 }
1423 description { state: "bell" 0.0;
1424 inherit: "tab" 0.0;
1425 color: FG_COLOR_BELL_NO_ALPHA 255;
1426 color3: BG_COLOR_BELL_NO_ALPHA 18;
1427 }
1428 }
1429 program { name: "tab,bell,on";
1430 signal: "tab,bell,on"; source: "terminology";
1431 action: STATE_SET "bell" 0.0;
1432 target: "tabtitle";
1433 }
1434 program { name: "tab,bell,off";
1435 signal: "tab,bell,off"; source: "terminology";
1436 action: STATE_SET "tab" 0.0;
1437 target: "tabtitle";
1417 } 1438 }
1418 part { name: "tablimit0"; type: SPACER; 1439 part { name: "tablimit0"; type: SPACER;
1419 description { state: "default" 0.0; 1440 description { state: "default" 0.0;
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