mac: Do not change window size when in fullscreen
This commit is contained in:
		
					parent
					
						
							
								381366daf1
							
						
					
				
			
			
				commit
				
					
						31e67788a2
					
				
			
		
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -737,6 +737,10 @@ bool NativeWindowMac::IsFullscreen() const {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void NativeWindowMac::SetBounds(const gfx::Rect& bounds, bool animate) {
 | 
			
		||||
  // Do nothing if in fullscreen mode.
 | 
			
		||||
  if (IsFullscreen())
 | 
			
		||||
    return;
 | 
			
		||||
 | 
			
		||||
  // Check size constraints since setFrame does not check it.
 | 
			
		||||
  gfx::Size size = bounds.size();
 | 
			
		||||
  size.SetToMax(GetMinimumSize());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue