mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	opt: keep current layout when combo multi tag
This commit is contained in:
		
							parent
							
								
									0b2b961f23
								
							
						
					
					
						commit
						24b4aa8cf2
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -1282,19 +1282,19 @@ void viewtoright_have_client(const Arg *arg) {
 | 
			
		|||
 | 
			
		||||
void comboview(const Arg *arg) {
 | 
			
		||||
	unsigned int newtags = arg->ui & TAGMASK;
 | 
			
		||||
	unsigned int target_tag = selmon->tagset[selmon->seltags];
 | 
			
		||||
 | 
			
		||||
	if (!newtags || !selmon)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (tag_combo)
 | 
			
		||||
		target_tag |= newtags;
 | 
			
		||||
	else {
 | 
			
		||||
	if (tag_combo) {
 | 
			
		||||
		selmon->tagset[selmon->seltags] |= newtags;
 | 
			
		||||
		focusclient(focustop(selmon), 1);
 | 
			
		||||
		arrange(selmon, false);
 | 
			
		||||
	} else {
 | 
			
		||||
		tag_combo = true;
 | 
			
		||||
		target_tag = newtags;
 | 
			
		||||
		view(&(Arg){.ui = newtags}, false);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	view(&(Arg){.ui = target_tag}, false);
 | 
			
		||||
	printstatus();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue