Sync OpenBSD patchset 1017:

Give each window a unique id, like panes but prefixed with @. Based on
work from George Nachman.
This commit is contained in:
Tiago Cunha
2012-01-31 12:01:43 +00:00
parent c08a532440
commit 2ee0d851d9
6 changed files with 94 additions and 24 deletions

View File

@ -341,6 +341,7 @@ format_winlink(struct format_tree *ft, struct session *s, struct winlink *wl)
layout = layout_dump(w);
flags = window_printable_flags(s, wl);
format_add(ft, "window_id", "@%u", w->id);
format_add(ft, "window_index", "%d", wl->idx);
format_add(ft, "window_name", "%s", w->name);
format_add(ft, "window_width", "%u", w->sx);