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

Multiple windows support #14

Merged
merged 11 commits into from
Apr 10, 2021
Merged

Multiple windows support #14

merged 11 commits into from
Apr 10, 2021

Conversation

mvlabat
Copy link
Owner

@mvlabat mvlabat commented Apr 10, 2021

Based on #13

Issues to fix:

  • When a new window is spawned, it acquires the focus, at least on Windows (TODO: test other platforms), but the active context is still the default window. That results in events coming from the second window being consumed by the default context.
  • Clipboard can paste into several fields at the same time if they are all active in different windows.

@mvlabat mvlabat self-assigned this Apr 10, 2021
@mvlabat
Copy link
Owner Author

mvlabat commented Apr 10, 2021

@jakobhellermann I've extended the two windows example a bit and found a couple of minor bugs. I'm looking into them right now, but if you already have an idea on how to fix those, that will help. :)

@jakobhellermann
Copy link
Contributor

@jakobhellermann I've extended the two windows example a bit and found a couple of minor bugs. I'm looking into them right now, but if you already have an idea on how to fix those, that will help. :)

What bugs are there? Running locally seems to work for me.

@mvlabat
Copy link
Owner Author

mvlabat commented Apr 10, 2021

@jakobhellermann sorry, I forgot to mention that I've described them in the PR body. :) The clipboard issue is now fixed, now I'm trying to figure out what to do with the invalid initial focus.

@jakobhellermann
Copy link
Contributor

On linux the focus doesn't seem to be an issue. The second window gets focused as well, but tab presses etc. get correctly handled in the second window.

@mvlabat
Copy link
Owner Author

mvlabat commented Apr 10, 2021

Yeah, it looks Windows specific... I wasn't able to reproduce it on my Macbook either.

@mvlabat mvlabat merged commit 99bf2be into main Apr 10, 2021
@mvlabat mvlabat deleted the multiple-windows-support branch April 10, 2021 14:40
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

Successfully merging this pull request may close these issues.

None yet

2 participants