-
-
Notifications
You must be signed in to change notification settings - Fork 444
Added SetFocus method to the Window #1952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@dotnet-policy-service agree |
|
This has been added to the API Review queue. |
|
Can you add the API to the PublicAPI files please? |
|
Sure. |
0de6f7a to
7c252e0
Compare
7c252e0 to
78a9d21
Compare
|
Any ETA when it can be merged? Or I need to do something else so it would be ready for merge? |
|
We were waiting for another API review session, but given this is just one API it probably isn't worth the wait. |
|
I haven't tested this, but according to docs SDLs RaiseWindow both requests the input focus (so from my understanding typing would go directly into the window, without any further interaction) and also brings it to the front
Looking at the original issue this seems to be about ImGUI multi-window. My suggestion would be to explicitly split this into BringToFront (naming?) and [Request]InputFocus |
7b5fad6 to
bf55028
Compare
|
I've renamed the method according to comments and rebased the branch. |
|
👌👌 |
Summary of the PR
Added SetFocus method to the Window
Related issues, Discord discussions, or proposals
As was discussed here #1526, both GLFW and SDL support this functionality and it is very usefull for the ImGui support, so it can be added to the window.
Further Comments
Unfortunately I wasn't be able to build the project, to check if everything is working correctly, could someone to pick it up? (I am asked for some reason to enter credentials for https://chrome-internal.googlesource.com that I don't have while recursive submodule update. Also I have tons of errors on nuke compile like Restore: \Silk.NET\src\Windowing\Silk.NET.Windowing.Sdl\S
ilk.NET.Windowing.Sdl.csproj : error NU1301: Failed to load service index for source https://gitlab.com/api/v4/projects/47661606/packages/nuget/index.js
on. Silk.NET\Silk.NET.gen.sln)