mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	opt: maximize and fullscreen not allow become drag window
This commit is contained in:
		
							parent
							
								
									e0e3069e7a
								
							
						
					
					
						commit
						79fafaeba6
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -293,8 +293,11 @@ moveresize(const Arg *arg) {
 | 
			
		|||
	if (cursor_mode != CurNormal && cursor_mode != CurPressed)
 | 
			
		||||
		return;
 | 
			
		||||
	xytonode(cursor->x, cursor->y, NULL, &grabc, NULL, NULL, NULL);
 | 
			
		||||
	if (!grabc || client_is_unmanaged(grabc) || grabc->isfullscreen)
 | 
			
		||||
	if (!grabc || client_is_unmanaged(grabc) || grabc->isfullscreen ||
 | 
			
		||||
		grabc->ismaxmizescreen) {
 | 
			
		||||
		grabc = NULL;
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	/* Float the window and tell motionnotify to grab it */
 | 
			
		||||
	if (grabc->isfloating == 0 && arg->ui == CurMove) {
 | 
			
		||||
		grabc->drag_to_tile = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue