You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a level editor with a menu bar window at the top containing dropdown menus. When opening such a dropdown menu and clicking on an item that overlaps another window behind the dropdown menu, the click event propagates through to that window. Is there any way to prevent this from happening? Do I have to manually keep track of when a dropdown menu is opened and disable all inputs to other windows while this is the case?
For example in this screenshot I am hovering the "Find" item in the "Edit" menu and when I then click it, that click is also registered with the XY view below and in this case would deselect the currently selected object.
I tried only processing inputs when the window has focus, but this doesn't help because the focus is immediately transferred to the background window when clicking.
The text was updated successfully, but these errors were encountered:
sylvester-prisse
changed the title
Inputs propagating to background windows
Inputs propagating to windows in background
May 22, 2024
This has also been mentioned at least here (#250).
I've hit the same (or similar) issue myself - a button press in one window also affecting a window underneath. Not yet sure of a decent solution.
Looks like this fix (#14) might cover similar ground (but for buttons) but I haven't read through the code changes there to see if there might be anything related.
I am writing a level editor with a menu bar window at the top containing dropdown menus. When opening such a dropdown menu and clicking on an item that overlaps another window behind the dropdown menu, the click event propagates through to that window. Is there any way to prevent this from happening? Do I have to manually keep track of when a dropdown menu is opened and disable all inputs to other windows while this is the case?
For example in this screenshot I am hovering the "Find" item in the "Edit" menu and when I then click it, that click is also registered with the XY view below and in this case would deselect the currently selected object.
I tried only processing inputs when the window has focus, but this doesn't help because the focus is immediately transferred to the background window when clicking.
The text was updated successfully, but these errors were encountered: