summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/list.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1ad09f5..e3898f0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-01 shawn <sabetts@diggin.lamenet.tmp>
+
+ * list.c (find_window_by_name): added check to make sure the
+ window's state is not STATE_UNMAPPED.
+
2000-11-27 shawn <sabetts@diggin.lamenet.tmp>
* events.c (handle_key): Code to generate the prefix event has
diff --git a/src/list.c b/src/list.c
index c4737ce..fa06f69 100644
--- a/src/list.c
+++ b/src/list.c
@@ -119,7 +119,7 @@ find_window_by_number (int n)
for (cur=rp_window_head; cur; cur=cur->next)
{
- if (cur->state != STATE_MAPPED) continue;
+ if (cur->state == STATE_UNMAPPED) continue;
if (n == cur->number) return cur;
}
@@ -146,6 +146,8 @@ find_window_by_name (char *name)
for (cur=rp_window_head; cur; cur=cur->next)
{
+ if (cur->state == STATE_UNMAPPED) continue;
+
if (str_comp (name, cur->name, strlen (name))) return cur;
}