diff options
author | sabetts <sabetts> | 2000-12-01 08:36:57 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-12-01 08:36:57 +0000 |
commit | 5ec1978cf5d9917e1ea6dda6f9169aedef7351a0 (patch) | |
tree | baf9e175d8e90f10bd1799f9850a3bc5071bdc8a /src/list.c | |
parent | b21c78a5b79f2548aa1a4cd24a3f4717aa9051ca (diff) | |
download | ratpoison-5ec1978cf5d9917e1ea6dda6f9169aedef7351a0.zip |
p out unmapped windows in find_window_by_name
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |