also consider width for tile fallback enforcing
This commit is contained in:
		
							parent
							
								
									cdd6c3e820
								
							
						
					
					
						commit
						5473e763f6
					
				
							
								
								
									
										3
									
								
								dwm.c
								
								
								
								
							
							
						
						
									
										3
									
								
								dwm.c
								
								
								
								
							| 
						 | 
					@ -1596,7 +1596,8 @@ tile(void) {
 | 
				
			||||||
				nh = th - 2 * c->border;
 | 
									nh = th - 2 * c->border;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		resize(c, nx, ny, nw, nh, True);
 | 
							resize(c, nx, ny, nw, nh, True);
 | 
				
			||||||
		if((c->h < bh) || (c->h > nh)) /* client doesn't accept geometry */
 | 
							if((c->h < bh) || (c->h > nh) || (c->w < bh) || (c->w > nw))
 | 
				
			||||||
 | 
								/* client doesn't accept geometry, so enforce it */
 | 
				
			||||||
			resize(c, nx, ny, nw, nh, False);
 | 
								resize(c, nx, ny, nw, nh, False);
 | 
				
			||||||
		if(n > 1 && th != wah)
 | 
							if(n > 1 && th != wah)
 | 
				
			||||||
			ny = c->y + c->h + 2 * c->border;
 | 
								ny = c->y + c->h + 2 * c->border;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue