mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	fix:The left and top shear coordinates of the scroll layout are abnormal
This commit is contained in:
		
							parent
							
								
									6afdacfd6c
								
							
						
					
					
						commit
						44957e72b4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								maomao.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								maomao.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1022,7 +1022,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
 | 
			
		|||
  // // make tagout tagin animations not visible in other monitors
 | 
			
		||||
  if (ISTILED(c)) {
 | 
			
		||||
    if (c->animation.current.x <= c->mon->m.x) {
 | 
			
		||||
      offsetx = c->mon->m.x - c->animation.current.x;
 | 
			
		||||
      offsetx = c->mon->m.x - c->animation.current.x - c->bw;
 | 
			
		||||
      clip_box->x = clip_box->x + offsetx;
 | 
			
		||||
      clip_box->width = clip_box->width - offsetx;
 | 
			
		||||
    } else if (c->animation.current.x + c->animation.current.width >=
 | 
			
		||||
| 
						 | 
				
			
			@ -1033,7 +1033,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    if (c->animation.current.y <= c->mon->m.y) {
 | 
			
		||||
      offsety = c->mon->m.y - c->animation.current.y;
 | 
			
		||||
      offsety = c->mon->m.y - c->animation.current.y - c->bw;
 | 
			
		||||
      clip_box->y = clip_box->y + offsety;
 | 
			
		||||
      clip_box->height = clip_box->height - offsety;
 | 
			
		||||
    } else if (c->animation.current.y + c->animation.current.height >=
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue