Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot focus window by id from empty desktop #133

Closed
dominiklohmann opened this issue Jul 14, 2019 · 1 comment
Closed

Cannot focus window by id from empty desktop #133

dominiklohmann opened this issue Jul 14, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@dominiklohmann
Copy link
Collaborator

dominiklohmann commented Jul 14, 2019

Bug report

Setup: 2 displays, desktop on display 1 is focused (no windows)

$ yabai -m query --spaces --display 1 | jq 'map(select(.visible == 1))'
[
  {
    "id": 6,
    "index": 1,
    "display": 1,
    "windows": [],
    "type": "bsp",
    "visible": 1,
    "focused": 1,
    "native-fullscreen": 0,
    "first-window": 0,
    "last-window": 0
  }
]

$ yabai -m query --spaces --display 2 | jq 'map(select(.visible == 1))'
[
  {
    "id": 1180,
    "index": 4,
    "display": 2,
    "windows": [
      124610,
      103637,
      103634
    ],
    "type": "bsp",
    "visible": 1,
    "focused": 0,
    "native-fullscreen": 0,
    "first-window": 103634,
    "last-window": 124610
  }
]

From display 1, focus the first window on display 2 by id

$ yabai -m display --focus 1 && yabai -m query --spaces --display next | jq '.[] | select(.visible == 1)."first-window"' | xargs yabai -m window --focus
could not locate the window to act on!
@koekeishiya koekeishiya added addressed on master; not released Fixed upstream, but not yet released bug Something isn't working labels Jul 14, 2019
@koekeishiya
Copy link
Owner

Fixed on master.

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Jul 14, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants