Skip to content

clicking outside of an ImGui window should cancel it (or do nothing), rather than selecting something #75288

Open
@db48x

Description

@db48x

Is your feature request related to a problem? Please describe.

Currently, the input_context turns all mouse clicks into the SELECT action, no matter where the user actually clicked. Currently this causes most ImGui windows to take some action, such as selecting a menu item. But if the input is outside of the window then it should generally close the window instead.

Solution you would like.

ImGui does have a way to test for this. I guess input_manager::get_input_event should throw away mouse events when ImGui::GetIO().WantCaptureMouse is set?

Describe alternatives you have considered.

No response

Additional context

No response

Activity

db48x

db48x commented on Jul 30, 2024

@db48x
ContributorAuthor

Unfortunately it’s complicated.

jcy1001

jcy1001 commented on Aug 2, 2024

@jcy1001

yes u are right ,it should

github-actions

github-actions commented on Jan 15, 2025

@github-actions
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

Brambor

Brambor commented on Jan 16, 2025

@Brambor
Contributor

Agreed. This is very annoying and is essentially a bug.

added
(S2 - Confirmed)Bug that's been confirmed to exist
ImGuiAnything related to the new ImGui UI for SDL/tiles or ImTui for curses builds
and removed
staleClosed for lack of activity, but still valid.
on Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    (S2 - Confirmed)Bug that's been confirmed to existImGuiAnything related to the new ImGui UI for SDL/tiles or ImTui for curses buildsInfo / User InterfaceGame - player communication, menus, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @db48x@Brambor@jcy1001

      Issue actions

        clicking outside of an ImGui window should cancel it (or do nothing), rather than selecting something · Issue #75288 · CleverRaven/Cataclysm-DDA