Skip to content

Mouse capture issue while using the "DockSpaceOverViewport()" function #3733

@amir-120

Description

@amir-120

Using the docking branch I tried making a dock space over the view port using the "ImGuiDockNodeFlags_PassthruCentralNode" flag but I'm having an issue, I block mouse inputs from going to the application when ImGui's "WantCaptureMouse" is set to true so the inputs won't register to both the program and the ImGui window at the same time now the problem I have is that when the mouse is right on the edge of the screen (no matter up, down, right or left edge) WantCaptureMouse gets set to "true" even tho there's no ImGui window rendering on those areas.
Here's an example:

{ ImGui::DockSpaceOverViewport(ImGui::GetMainViewport(), ImGuiDockNodeFlags_PassthruCentralNode); ImGui::Begin("Test"); ImGui::Text("Want M input: %d", ImGui::GetIO().WantCaptureMouse); ImGui::End(); }

Example

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions