mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 09:44:35 +00:00 
			
		
		
		
	test: Fix a window parenting bug in testmodal
This commit is contained in:
		@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (e.key.key == SDLK_M) {
 | 
					                    if (e.key.key == SDLK_M) {
 | 
				
			||||||
                        if (SDL_SetWindowParent(w2, w2)) {
 | 
					                        if (SDL_SetWindowParent(w2, w1)) {
 | 
				
			||||||
                            if (SDL_SetWindowModal(w2, true)) {
 | 
					                            if (SDL_SetWindowModal(w2, true)) {
 | 
				
			||||||
                                SDL_SetWindowTitle(w2, "Modal Window");
 | 
					                                SDL_SetWindowTitle(w2, "Modal Window");
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user