We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3910

Summary: SDL_CreateWindow didn't set SDL_WINDOW_INPUT_FOCUS flag
Product: SDL Reporter: Tony Liu <mrtoniliu>
Component: videoAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.6   
Hardware: x86_64   
OS: Linux   
Attachments: A simple reproducer.

Description Tony Liu 2017-10-23 08:14:00 UTC
Created attachment 3027 [details]
A simple reproducer.

Hi, 

I've found that the SDL_CreateWindow didn't set the SDL_WINDOW_INPUT_FOCUS flag, which could be reproduced on both Ubuntu 14.04 and 16.04. It causes problem for selecting focused window among multiple windows created. I've prepared a simple reproducer for this problem. 

This problem might also be duplicate to the one here: https://bugzilla.libsdl.org/show_bug.cgi?id=2745

BR,
Tony