mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	opt: optimize setfloating geom rule
This commit is contained in:
		
							parent
							
								
									c2b12bbcb8
								
							
						
					
					
						commit
						98413aa01b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								maomao.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								maomao.c
									
										
									
									
									
								
							| 
						 | 
					@ -1234,7 +1234,7 @@ applyrulesgeom(Client *c) {
 | 
				
			||||||
      c->geom.height = r->height > 0 ? r->height : c->geom.height;
 | 
					      c->geom.height = r->height > 0 ? r->height : c->geom.height;
 | 
				
			||||||
      // 重新计算居中的坐标
 | 
					      // 重新计算居中的坐标
 | 
				
			||||||
      c->geom = setclient_coordinate_center(c->geom);
 | 
					      c->geom = setclient_coordinate_center(c->geom);
 | 
				
			||||||
      hit = 1;
 | 
					      hit = r->height > 0 || r->width > 0 ? 1 : 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  return hit;
 | 
					  return hit;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue