Эх сурвалжийг харах

Merge pull request #26 from chown-coffee/main

make super tab switch between the 2 previous tags
siduck76 3 жил өмнө
parent
commit
c00f5144ca
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      chadwm/dwm.c

+ 1 - 1
chadwm/dwm.c

@@ -3541,6 +3541,7 @@ void view(const Arg *arg) {
   selmon->seltags ^= 1; /* toggle sel tagset */
   if (arg->ui & TAGMASK) {
     selmon->pertag->prevtag = selmon->pertag->curtag;
+    selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
 
 		if (arg->ui == ~0)
 			selmon->pertag->curtag = 0;
@@ -3562,7 +3563,6 @@ void view(const Arg *arg) {
 
 	if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag])
 		togglebar(NULL);
-    selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
   focus(NULL);
   arrange(selmon);
   	updatecurrentdesktop();