fix last tab view
@@ -4889,6 +4889,8 @@ view(const Arg *arg)
int ui = computeprefix(arg);
int i;
+ if (selmon->tagset[0] == 1 << ui)
+ return;
selmon->seltags ^= 1; /* toggle sel tagset */
if (ui & TAGMASK) {
@@ -5279,6 +5281,9 @@ overtoggle(const Arg *arg){
void
lastview(const Arg *arg) {
+ if (selmon->pertag->curtag == selmon->pertag->prevtag)
+ focuslastclient(NULL);
+ else
view(&((Arg) { .ui = 1 << ( selmon->pertag->prevtag -1 ) }));
}
