about summary refs log tree commit diff stats
path: root/src/windows.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-27 00:17:35 +0000
committerJames Booth <boothj5@gmail.com>2012-11-27 00:17:35 +0000
commit671e7d589f55f259f647ae5553cdfa82a229b250 (patch)
treede483018573e89501f4bb6ec1c7a22ea2126fedd /src/windows.c
parent213ccc0150ab50084ddb80721a38a552fff76686 (diff)
downloadprofani-tty-671e7d589f55f259f647ae5553cdfa82a229b250.tar.gz
Show message on /msg when windows full
Diffstat (limited to 'src/windows.c')
-rw-r--r--src/windows.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/windows.c b/src/windows.c
index 64a18bd6..f75c0bb9 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -166,6 +166,19 @@ ui_load_colours(void)
     }
 }
 
+gboolean
+ui_windows_full(void)
+{
+    int i;
+    for (i = 1; i < NUM_WINS; i++) {
+        if (windows[i] == NULL) {
+            return FALSE;
+        }
+    }
+
+    return TRUE;
+}
+
 void
 ui_show_typing(const char * const from)
 {
mitter Ben Morrison <ben@gbmor.dev> 2019-05-23 01:08:13 -0400 configuration init changes' href='/gbmor/getwtxt/commit/types.go?h=v0.4.4&id=cd635e6c6b009d6c9d6943ea7c850ca740172b65'>cd635e6 ^
f06a2d6 ^
747f4fb ^
df1d1ef ^







747f4fb ^



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