phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

Focus screen when moving window to new screen

Open konstantinkobs opened this issue 6 years ago • 6 comments

I wrote a config that moves the currently focused window to a new screen by setting the Rect of the window to coordinates inside the target screen. This works fine, however, the new screen won't get focused. The old screen is focused instead and if I use another shortcut, for example to center the window on the screen, the window jumps back to the old window.

Is there a way to focus the new screen explicitly or is there a function better than setting the Rect for the window to move the window to the new screen?

  • Version: 2.6.2 (71)
  • macOS: 10.14 (18A391)

konstantinkobs avatar Oct 29 '18 07:10 konstantinkobs

Hi! Hmm, you could try focusing the window again after moving…

kasper avatar Oct 29 '18 08:10 kasper

I tried that, but unfortunately, this did not have any effect. I also got the target screen's active space and manually added the window to it, but this didn't work either. 🙁

konstantinkobs avatar Oct 30 '18 07:10 konstantinkobs

Ok, thanks! I’ll look into it.

kasper avatar Oct 30 '18 07:10 kasper

Nice, thank you very much! Phoenix is a beautiful tool that I really like! Keep up the good work! 😊

konstantinkobs avatar Oct 30 '18 07:10 konstantinkobs

Any updates on this?

jameslittle230 avatar Feb 09 '19 20:02 jameslittle230

@jameslittle230 Sorry, I haven’t had time to look into this yet. Feel free to contribute.

kasper avatar Feb 02 '20 13:02 kasper