about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 8f554f5b..7b3190ed 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -277,14 +277,17 @@ _ui_contact_typing(const char * const barejid)
     }
 
     if (prefs_get_boolean(PREF_NOTIFY_TYPING)) {
-        PContact contact = roster_get_contact(barejid);
-        char const *display_usr = NULL;
-        if (p_contact_name(contact) != NULL) {
-            display_usr = p_contact_name(contact);
-        } else {
-            display_usr = barejid;
+        gboolean is_current = wins_is_current(window);
+        if ( !is_current || (is_current && prefs_get_boolean(PREF_NOTIFY_TYPING_CURRENT)) ) {
+            PContact contact = roster_get_contact(barejid);
+            char const *display_usr = NULL;
+            if (p_contact_name(contact) != NULL) {
+                display_usr = p_contact_name(contact);
+            } else {
+                display_usr = barejid;
+            }
+            notify_typing(display_usr);
         }
-        notify_typing(display_usr);
     }
 }
 
9298f6f1fe8e'>^
78357b88 ^
0bb09d2e ^
dc5a0acf ^

0bb09d2e ^


3ff2fe60 ^
0bb09d2e ^

78357b88 ^
0bb09d2e ^
dc5a0acf ^
0bb09d2e ^


78357b88 ^
0bb09d2e ^




























3ff2fe60 ^
0bb09d2e ^



3ff2fe60 ^

0bb09d2e ^






3ff2fe60 ^
86351aaf ^
33352536 ^

3ff2fe60 ^
86351aaf ^




3ff2fe60 ^
86351aaf ^


3ff2fe60 ^
86351aaf ^
2655a4a9 ^
86351aaf ^

3ff2fe60 ^
86351aaf ^
3ff2fe60 ^
86351aaf ^


3ff2fe60 ^

86351aaf ^
3ff2fe60 ^
86351aaf ^



0bb09d2e ^
3ff2fe60 ^
86351aaf ^
3ff2fe60 ^
86351aaf ^









0bb09d2e ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121