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

Editor when in another window inconsistently responds to inputs from other windows #78

Open
Architector4 opened this issue Jun 19, 2023 · 0 comments

Comments

@Architector4
Copy link

Architector4 commented Jun 19, 2023

I'm adding this editor by slapping it on the Bevy app like so:

        .add_plugin(EditorPlugin::new().in_new_window(Window::default()))

However, the viewport window in the editor, as well as keyboard shortcuts like T/R/S, seem to sometimes respond to mouse and keyboard events from the primary window, when the editor window is not in focus.

From experimentation, it seems like the most consistent way to trigger this bug is to put one window over the other and quickly move the mouse from the editor window to the primary window, where the cursor is over one of the two Bevy's windows for every frame, and then try the inputs.

I assume the input code there isn't checking if the window the editor is on is actually in focus before processing input events or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant