Commits

Anonymous committed c95836b

I found a bug in the window reordering patch; this one fixes that

  • Participants
  • Parent commits 423387a

Comments (0)

Files changed (1)

File src/screen.c

     newc = NULL;
 
   if (newc) {
-      rechainclient(newc, 1);
-      rechainclient(current, 0);
+      if (newc != current) {
+	  rechainclient(newc, 1);
+	  rechainclient(current, 0);
+      }
       nextprevious( newc );
   }
 }
     for (newc = head_client; newc && newc->next; newc = newc->next );
 
   if (newc) {
-      rechainclient(newc, 1);
-      rechainclient(current, 0);
+      if (newc != current) {
+	  rechainclient(newc, 1);
+	  rechainclient(current, 0);
+      }
       nextprevious( newc );
   }
 }