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

Handle multiple windows #14

Closed
aphilas opened this issue Nov 25, 2022 · 5 comments
Closed

Handle multiple windows #14

aphilas opened this issue Nov 25, 2022 · 5 comments
Labels

Comments

@aphilas
Copy link

aphilas commented Nov 25, 2022

I have two monitors. Clicking the uBOL extension button on Window 2 brings up the setting for the active tab of the window on the primary monitor rather than the window I'm on (the secondary monitor).

Example:

window 1, monitor 1   window 2, monitor 2

+-------------------+ +--------------------+
| github.com        | | wikifeet.com       |
|                   | |       +----------+ |
|                   | |       |basic     | |
|                   | |       |   x      | |
|                   | |       |xxxxxxxxxx| |
|                   | |       |   x      | |
|                   | |       |github.com| |
|                   | |       +----------+ |
|                   | |                    |
|                   | |                    |
+-------------------+ +--------------------+

Linux 5.4.0-132-generic | ~18.04.1-Ubuntu
Chrome Version 107.0.5304.110 (Official Build) (64-bit)
uBlock Origin Lite 0.1.22.11165

@gwarser

This comment was marked as outdated.

gorhill added a commit to gorhill/uBlock that referenced this issue Nov 25, 2022
@gorhill
Copy link
Member

gorhill commented Nov 25, 2022

I don't have two monitors so I can't test if the change fixes this. You will have to report back if it's fixed in the next release.

@aphilas
Copy link
Author

aphilas commented Nov 25, 2022 via email

@aphilas
Copy link
Author

aphilas commented Nov 25, 2022

I have seen the referenced commit. Appears to fix the issue.

I presume await browser.tabs.query({ active: true, currentWindow: true }) would also work, no?

I have also installed the dev version and will await the release with the fix and report back here.


Edit:

Dev build seems to work alright! I'll go ahead and close this issue.

@aphilas aphilas closed this as completed Nov 25, 2022
@gorhill
Copy link
Member

gorhill commented Nov 25, 2022

I presume await browser.tabs.query({ active: true, currentWindow: true }) would also work, no?

Thanks for pointing this out, I will use this instead.

@gorhill gorhill added the fixed label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants