mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	fix: avoid to set null client
This commit is contained in:
		
							parent
							
								
									6ad8a6eef5
								
							
						
					
					
						commit
						1ee5f0ef91
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -872,7 +872,12 @@ void tagmon(const Arg *arg) {
 | 
			
		|||
 | 
			
		||||
void tagsilent(const Arg *arg) {
 | 
			
		||||
	Client *fc;
 | 
			
		||||
	Client *target_client = selmon->sel;
 | 
			
		||||
	Client *target_client;
 | 
			
		||||
 | 
			
		||||
	if (!selmon || !selmon->sel)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	target_client = selmon->sel;
 | 
			
		||||
	target_client->tags = arg->ui & TAGMASK;
 | 
			
		||||
	wl_list_for_each(fc, &clients, link) {
 | 
			
		||||
		if (fc && fc != target_client && target_client->tags & fc->tags &&
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue