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

Draft of app switching based on the taskbar order #2214

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

undefiened
Copy link

@undefiened undefiened commented Nov 17, 2024

Hi,

I am trying to draft a solution for #2163

It is at a very early stage and I unfortunately have an issue so I was wondering if I could ask for a little bit of help because the logic of the process is lost to me. I have ungrouped windows, so every window is a separate entry in the taskbar. The code that I have written works without issues on windows of differents apps, so for example if I have open Firefox, Terminal, File manager, Sublime Text then if would switch back and forth correctly, no issues there. However, if I have several windows of the same app, for example, Terminal w1, Terminal w2, Terminal w3 it would sometimes jump between windows in a wrong order, for example if I click left from w3 it would sometimes switch to w1 instead of w2.

The main logic is in linearSwitcher.js

Thank you for the help and sorry for taking your valuable time!

@charlesg99
Copy link
Member

Hi, there already is something similar when you scroll on a panel, so you could try to reuse that. See here, but you'll need to account for monitor isolation as you can have different windows linked to different panels. In that case, you'll probably have to concat a list of all windows (from every panels) and activateSiblingWindow using that list. Good luck!

@undefiened
Copy link
Author

Hi, there already is something similar when you scroll on a panel, so you could try to reuse that. See here, but you'll need to account for monitor isolation as you can have different windows linked to different panels. In that case, you'll probably have to concat a list of all windows (from every panels) and activateSiblingWindow using that list. Good luck!

Got it, I will take a look at that! Thank you very much!

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.

2 participants