mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 15:34:58 +00:00 
			
		
		
		
	wayland: Don't try to restore non-resizable windows
Libdecor can crash if attempting to un-maximize a window that was not set as resizable. (cherry picked from commit e35c3872dc6a8f7741baba8b786b202cef7503ac)
This commit is contained in:
		
							parent
							
								
									e8ae155585
								
							
						
					
					
						commit
						a47a045128
					
				| 
						 | 
					@ -1760,6 +1760,10 @@ void Wayland_RestoreWindow(_THIS, SDL_Window *window)
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Set this flag now even if we never actually maximized, eventually
 | 
					    /* Set this flag now even if we never actually maximized, eventually
 | 
				
			||||||
     * ShowWindow will take care of it along with the other window state.
 | 
					     * ShowWindow will take care of it along with the other window state.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue