Add a uicb function to go to the last tag directly (will probably be

used only by myself ^^)
This commit is contained in:
Raphael Khaiat 2010-11-17 01:52:24 +01:00
parent 8d71b8c2a8
commit e5b2a9e058
3 changed files with 15 additions and 1 deletions

View File

@ -69,6 +69,7 @@ func_name_list_t tmp_func_list[] =
{"tag_new", uicb_tag_new },
{"tag_del", uicb_tag_del },
{"tag_rename", uicb_tag_rename },
{"tag_last", uicb_tag_last },
{"set_mwfact", uicb_set_mwfact },
{"set_nmaster", uicb_set_nmaster },
{"quit", uicb_quit },

View File

@ -281,6 +281,19 @@ uicb_tag_prev_visible(uicb_t cmd)
return;
}
/** Go to the last tag
* \param cmd uicb_t type unused
*/
void
uicb_tag_last(uicb_t cmd)
{
screen_get_sel();
tag_set(conf.ntag[selscreen]);
return;
}
/** Transfert the selected client to
* the wanted tag
* \param cmd Wanted tag, uicb_t type
@ -622,4 +635,3 @@ uicb_tag_rename(uicb_t cmd)
return;
}

View File

@ -329,6 +329,7 @@ void uicb_tag_new(uicb_t);
void tag_delete(int s, int tag);
void uicb_tag_del(uicb_t);
void uicb_tag_rename(uicb_t cmd);
void uicb_tag_last(uicb_t cmd);
/* screen.c */
int screen_count(void);