diff options
author | sabetts <sabetts> | 2004-11-19 00:52:53 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2004-11-19 00:52:53 +0000 |
commit | 3597d7d9eaff4d51b8825b9eea443ce7db86c733 (patch) | |
tree | 9a966e071deac20216c6f5958fc90f88d6b01874 /src/window.c | |
parent | 09221a12124bd6c3b13d23c85932a26cae57edac (diff) | |
download | ratpoison-3597d7d9eaff4d51b8825b9eea443ce7db86c733.zip |
* src/window.c (print_window_information): add argument,
group. print the window's number in the group. All callers
updated.
* src/actions.c (cmd_info): print the window's number in the
current group.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c index 0ce8239..68e5963 100644 --- a/src/window.c +++ b/src/window.c @@ -529,10 +529,18 @@ goto_window (rp_window *win) } void -print_window_information (rp_window *win) +print_window_information (rp_group *group, rp_window *win) { - marked_message_printf (0, 0, MESSAGE_WINDOW_INFORMATION, - win->number, window_name (win)); + rp_window_elem *win_elem; + /* Display the window's number in group. This gives the possibility + of windows existing in multiple groups. */ + win_elem = group_find_window (&group->mapped_windows, win); + if (win_elem) + marked_message_printf (0, 0, MESSAGE_WINDOW_INFORMATION, + win_elem->number, window_name (win)); + else + marked_message_printf (0, 0, "%s doesn't exist in group %d\n", + window_name(win), group->number); } /* format options |