fix of resize (thanks Sander for the hint!)
This commit is contained in:
		
							parent
							
								
									f2512243f4
								
							
						
					
					
						commit
						8fcc4ff0ae
					
				
							
								
								
									
										2
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								client.c
									
									
									
									
									
								
							| @ -272,9 +272,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) { | |||||||
| 			w -= (w - c->basew) % c->incw; | 			w -= (w - c->basew) % c->incw; | ||||||
| 		if(c->inch) | 		if(c->inch) | ||||||
| 			h -= (h - c->baseh) % c->inch; | 			h -= (h - c->baseh) % c->inch; | ||||||
|  | 	} | ||||||
| 	if(w <= 0 || h <= 0) | 	if(w <= 0 || h <= 0) | ||||||
| 		return; | 		return; | ||||||
| 	} |  | ||||||
| 	/* offscreen appearance fixes */ | 	/* offscreen appearance fixes */ | ||||||
| 	if(x > sw) | 	if(x > sw) | ||||||
| 		x = sw - w - 2 * c->border; | 		x = sw - w - 2 * c->border; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user