Skip to content
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

Disable inputs for specific window, ImGuiWindowFlags_NoInputs ignored #8265

Open
d-bum opened this issue Dec 25, 2024 · 0 comments
Open

Disable inputs for specific window, ImGuiWindowFlags_NoInputs ignored #8265

d-bum opened this issue Dec 25, 2024 · 0 comments
Labels

Comments

@d-bum
Copy link

d-bum commented Dec 25, 2024

Version/Branch of Dear ImGui:

docking branch

Back-ends:

imgui_impl_sdl.cpp + imgui_impl_opengl3.cpp

Compiler, OS:

Windows 11

Full config/build information:

No response

Details:

Disable inputs for specific window

I want to disable any ImGui IO for a specific window. When I create an ImGui window with the ImGuiWindowFlags_NoInputs flag:
ImGui::Begin("DisabledInput", nullptr, ImGuiWindowFlags_NoInputs); ...; ImGui::End();
The io.WantCaptureKeyboard and io.WantCaptureMouse still get triggered when there is input on that specific window.

Am I understanding the ImGuiWindowFlags_NoInputs flag wrong? Is there any other way to disable the inputs for a specific ImGui window? Best case for my purpose would be that inputs can be disabled in a way so no io.WantCaptureKeyboard and io.WantCaptureMouse get triggered for that window.

Thank you in advance.

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

@ocornut ocornut added the inputs label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants