summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrcyeske <rcyeske>2001-03-05 23:25:16 +0000
committerrcyeske <rcyeske>2001-03-05 23:25:16 +0000
commit7dc430f14d76a91ed12530691ea2d91efc98383d (patch)
treeff50676c13628bd8f83d79607f42e2670e7ab1c7 /src
parent006342c1e7a9ef4b4573bd6275678f805173909a (diff)
downloadratpoison-7dc430f14d76a91ed12530691ea2d91efc98383d.zip
(update_window_names): Print a '+' for the last accessed
window.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/bar.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 680e5ed..037c3de 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-05 Ryan Yeske <rcyeske@cut.hotdog.tmp>
+
+ * bar.c (update_window_names): Print a '+' for the last accessed
+ window.
+
2001-03-03 Ryan Yeske <rcyeske@cut.hotdog.tmp>
* actions.c (cmd_bind): Do not pollute the message bar with
diff --git a/src/bar.c b/src/bar.c
index 732b8ef..c713c63 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -92,6 +92,8 @@ update_window_names (screen_info *s)
{
static struct sbuf *bar_buffer = NULL;
rp_window *w;
+ rp_window *other_window;
+
char dbuf[10];
int mark_start = 0;
@@ -104,6 +106,8 @@ update_window_names (screen_info *s)
sbuf_clear (bar_buffer);
+ other_window = find_window_other ();
+
for (w = rp_mapped_window_sentinel->next;
w != rp_mapped_window_sentinel;
w = w->next)
@@ -120,6 +124,8 @@ update_window_names (screen_info *s)
if (w == rp_current_window)
sbuf_concat (bar_buffer, "*");
+ else if (w == other_window)
+ sbuf_concat (bar_buffer, "+");
else
sbuf_concat (bar_buffer, "-");