-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Can't disable mouse inputs for only a window and not its contents #3368
Comments
I suppose this could be fixed by splitting each row into a separate window for now. |
Hello @JMS55, It's a little difficult with the current hovering scheme. We decide of the "hovered window" at the beginning of the frame, based on first rectangle hit on the front-to-back list of window, and then lots of interactions are filtered early based on this hovered window. The sort of pass-through you mention would require much more involved hit-testing for each widget, and I honestly wouldn't know how to implement it efficiently at this point. Some thoughts for work-arounds:
The hit test callbacks discussed in #1512 would similarly require you to know where those holes are, so I think using (B) should be sufficient for you. Omar |
Thank you for the information. (B) seems like it will work, with (A) as a work-around until imgui publishes a release and imgui-rs updates to it. Feel free to close this issue |
…derRectFilledWithHole() helper. (ocornut#1512, ocornut#3368)
…derRectFilledWithHole() helper. (ocornut#1512, ocornut#3368)
You should be able to disable mouse inputs for windows, but not their contents.
I'm using an window with no background, non resizeable, can't move it, no title, etc for my UI, like so:
The issue is that the window captures mouse input in the space to the right of the "Brush Size" text, since there's technically an invisible background there. Here's what it looks like with the background showing:
Using the no mouse input flag fixes this, but also makes it so that you can't interact with any of the buttons or widgets either. I want a mode like no mouse input, but only applying to the window itself, and not it's contents.
The text was updated successfully, but these errors were encountered: