mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	opt: do noting when view same tag widht view_current_to_back disalbed
This commit is contained in:
		
							parent
							
								
									9fd56f60ec
								
							
						
					
					
						commit
						e7184762a4
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -10,6 +10,11 @@ int bind_to_view(const Arg *arg) {
 | 
				
			||||||
			target = 0;
 | 
								target = 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!view_current_to_back &&
 | 
				
			||||||
 | 
							(target & TAGMASK) == (selmon->tagset[selmon->seltags])) {
 | 
				
			||||||
 | 
							return 0;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((int)target == INT_MIN && selmon->pertag->curtag == 0) {
 | 
						if ((int)target == INT_MIN && selmon->pertag->curtag == 0) {
 | 
				
			||||||
		if (view_current_to_back && selmon->pertag->prevtag)
 | 
							if (view_current_to_back && selmon->pertag->prevtag)
 | 
				
			||||||
			target = 1 << (selmon->pertag->prevtag - 1);
 | 
								target = 1 << (selmon->pertag->prevtag - 1);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue