summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/list.c10
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 87c9ae5..083c3d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-01-26 shawn <sabetts@vcn.bc.ca>
+ * src/list.c (format_window_name): If res_class or res_name are
+ NULL use "None" instead.
+
* src/actions.c (alias_t): rename data structure from cmd_alias to
avoid a name clash with the function cmd_alias. Dependant code
updated.
diff --git a/src/list.c b/src/list.c
index 30e0325..a78eb57 100644
--- a/src/list.c
+++ b/src/list.c
@@ -672,11 +672,17 @@ format_window_name (char *fmt, rp_window *win, rp_window *other_win,
break;
case 'a':
- sbuf_concat (buffer, win->res_name);
+ if (win->res_name)
+ sbuf_concat (buffer, win->res_name);
+ else
+ sbuf_concat (buffer, "None");
break;
case 'c':
- sbuf_concat (buffer, win->res_class);
+ if (win->res_class)
+ sbuf_concat (buffer, win->res_class);
+ else
+ sbuf_concat (buffer, "None");
break;
case 'i':