diff --git a/src/config.c b/src/config.c index 1e2b38e..3749aae 100644 --- a/src/config.c +++ b/src/config.c @@ -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 }, diff --git a/src/tag.c b/src/tag.c index f509368..9125602 100644 --- a/src/tag.c +++ b/src/tag.c @@ -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; } - diff --git a/src/wmfs.h b/src/wmfs.h index 6b0f4d3..267e044 100644 --- a/src/wmfs.h +++ b/src/wmfs.h @@ -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);