kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.36k stars 128 forks source link

addWindows & removeWindows broken in macOS 12.2.1? #293

Closed alexbepple closed 2 years ago

alexbepple commented 2 years ago

Version: 2.6.8 macOS: 12.2.1

After upgrade from macOS 12.1 to 12.2.1, a handler that I have for moving windows from space to space stopped working. To me, it seems that addWindows and removeWindows don't do anything. I have not found any errors in Console.app. But maybe I did not look correctly.

My code is very similar to the docs example:

  const currentWindow = Window.focused()
  Space.all()[toIdx].addWindows([currentWindow])
  Space.all()[fromIdx].removeWindows([currentWindow])
  currentWindow.focus()

I see that with 3.0.0 there is a new Space.moveWindows method. From the API docs ("macOS 10.13+") it looks as though it relies an a new API and is not merely sugar. Any chance of an early release of 3.0.0?

kasper commented 2 years ago

Hello! Yes, this is a duplicate of #289 and is fixed in master with the new API. I’m trying release 3.0.0 in the next week or so.

alexbepple commented 2 years ago

Ah, yes. Thank you, @kasper. I did search the issues. But apparently not hard enough. Hopefully you can make the release happen. Thank you.

kasper commented 2 years ago

@alexbepple Released!

alexbepple commented 2 years ago

@kasper Works like a charm. Thank you!