mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 01:32:42 +01:00 
			
		
		
		
	Adding break when sorted_workspaces is filled
This commit is contained in:
		@@ -99,6 +99,9 @@ void Workspaces::onCmd(const struct Ipc::ipc_response &res) {
 | 
			
		||||
            if (it != ws_end) {
 | 
			
		||||
              sorted_workspaces.emplace_back(*it);
 | 
			
		||||
              --ws_end;
 | 
			
		||||
              if (ws_end == workspaces_.begin()) { // we've extracted everything
 | 
			
		||||
                break;
 | 
			
		||||
              }
 | 
			
		||||
              ws_end->swap(*it);
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user