From b538ebeacf38e1605c7ad551ba4d54e140f27916 Mon Sep 17 00:00:00 2001 From: sabetts Date: Wed, 10 Oct 2001 05:35:00 +0000 Subject: (format_window_name): add formatting option '%l' to grab the last_access field from the window. --- ChangeLog | 5 +++++ src/list.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 710bfe4..1604066 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-10-09 shawn + + * src/list.c (format_window_name): add formatting option '%l' to + grab the last_access field from the window. + 2001-10-05 Gergely Nagy * contrib/ratpoisonrc-mode.el: superceded by.. diff --git a/src/list.c b/src/list.c index 24ffd98..f8666ad 100644 --- a/src/list.c +++ b/src/list.c @@ -629,6 +629,7 @@ print_window_information (rp_window *win) %a - application name %c - resource class %i - X11 Window ID + %l - last access number */ static void @@ -681,6 +682,11 @@ format_window_name (char *fmt, rp_window *win, rp_window *other_win, sbuf_concat (buffer, dbuf); break; + case 'l': + snprintf (dbuf, 9, "%d", win->last_access); + sbuf_concat (buffer, dbuf); + break; + case '%': dbuf[0] = '%'; dbuf[1] = 0; -- cgit v1.2.3