mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-28 02:34:15 +00:00 
			
		
		
		
	Moved printstatus() call in focusclient() to prevent printstatus being called on every frame when things like dmenu are up
This commit is contained in:
		
							parent
							
								
									3b05eadeaf
								
							
						
					
					
						commit
						52e6bf4735
					
				
							
								
								
									
										3
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								dwl.c
									
									
									
									
									
								
							| @ -1083,7 +1083,6 @@ focusclient(Client *c, int lift) | ||||
| 		selmon = c->mon; | ||||
| 		c->isurgent = 0; | ||||
| 	} | ||||
| 	printstatus(); | ||||
| 
 | ||||
| 	/* Deactivate old client if focus is changing */ | ||||
| 	if (old && (!c || client_surface(c) != old)) { | ||||
| @ -1106,6 +1105,8 @@ focusclient(Client *c, int lift) | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	printstatus(); | ||||
| 
 | ||||
| 	if (!c) { | ||||
| 		/* With no client, all we have left is to clear focus */ | ||||
| 		wlr_seat_keyboard_notify_clear_focus(seat); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 David Donahue
						David Donahue