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

Window filter focus order across spaces #1260

Open
saagarjha opened this issue Mar 16, 2017 · 1 comment
Open

Window filter focus order across spaces #1260

saagarjha opened this issue Mar 16, 2017 · 1 comment

Comments

@saagarjha
Copy link
Contributor

I'm trying to use a cross-space window filter:

windowFilter = hs.window.filter.new():setCurrentSpace(nil)

When I call windowFilter:getWindows(), I'd expect it to return windows in order of their last focused time; for example, if I have the following window set (in order of most recently focused):

  1. Space 1:
    • App 1 Window 1
    • App 1 Window 2
    • App 2 Window 1
  2. Space 2:
    • App 3 Window 1

and I start with App 1 Window 1, and swipe to Space 2, then swipe back, I'd assume the window filter would give the following:

  1. App 1 Window 1
  2. App 3 Window 1
  3. App 1 Window 2
  4. App 2 Window 1

However, I instead get the windows grouped by app/space:

  1. App 1 Window 1
  2. App 1 Window 2
  3. App 2 Window 1
  4. App 3 Window 1

The works as expected if the windows are all in the same space. Is there any way to force the window filter to completely ignore spaces (or is this a bug?)

@lowne
Copy link
Contributor

lowne commented Jul 3, 2017

@saagarjha see #1460
TLDR: windowFilter = hs.window.filter.new():setCurrentSpace(nil):keepActive()

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

2 participants