mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	opt: drag to float no auto set size
This commit is contained in:
		
							parent
							
								
									3982134e59
								
							
						
					
					
						commit
						40d74c202a
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								maomao.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								maomao.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4682,7 +4682,7 @@ setfloating(Client *c, int floating) {
 | 
			
		|||
 | 
			
		||||
  target_box = c->geom;
 | 
			
		||||
 | 
			
		||||
  if (floating == 1) {
 | 
			
		||||
  if (floating == 1 && c != grabc) {
 | 
			
		||||
    if (c->istiled && !c->swallowing && !c->is_open_animation) {
 | 
			
		||||
      target_box.height = target_box.height * 0.8;
 | 
			
		||||
      target_box.width = target_box.width * 0.8;
 | 
			
		||||
| 
						 | 
				
			
			@ -4699,6 +4699,8 @@ setfloating(Client *c, int floating) {
 | 
			
		|||
      resize(c, target_box, 0);
 | 
			
		||||
    }
 | 
			
		||||
    c->istiled = 0;
 | 
			
		||||
  } else if(c->isfloating && c == grabc) {
 | 
			
		||||
    c->istiled = 0;
 | 
			
		||||
  } else {
 | 
			
		||||
    c->istiled = 1;
 | 
			
		||||
    c->is_scratchpad_show = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue