PaperWM.spoon icon indicating copy to clipboard operation
PaperWM.spoon copied to clipboard

Move window to space (on same display) not working

Open jessevdp opened this issue 1 year ago • 1 comments

Hey,

First off, I'm really enjoying PaperWM.spoon. It's really interesting to use something like this on MacOS. Kudos for that.


It seems like I can't move a window from one space to another on the same monitor.

A demo:

https://github.com/user-attachments/assets/1e2aa48c-8913-47a4-a37d-318a0398891b

Here you see me

  1. Switch from space 4 to space 3
  2. Switch back from space 3 to space 4
  3. Attempt to move the window from space 4 to space 3
  4. Notice that the window didn't move
  5. Switch back to space 4 and see that its still there

It seems that the window is moved out of the tiling layer, but remains in the previous space.

I can move a window from a space on a separate screen to another screen. Curious.

Any clue what's happening?

Thanks! ✌️

jessevdp avatar Oct 04 '24 07:10 jessevdp

Hey, sorry for the delay. Could you check a few things:

  1. Make sure you're using the latest version of Hammerspoon and have cloned the latest version of PaperWM.spoon

  2. Use the switch_space_l, switch_space_r, switch_space_1, etc actions instead of the MacOS swipe left / right or ctrl + arrow key methods to switch space. This lets PaperWM try to keep sync between what space it thinks is focused and what space is actually visible on screen.

  3. Make sure you've selected / deselected the required Mission Control options in https://github.com/mogenson/PaperWM.spoon?tab=readme-ov-file#installation step #2

  4. Can you copy and paste the output from the Hammerspoon Console when invoking the move_window_1, etc action.

mogenson avatar Oct 14 '24 18:10 mogenson

Hi, this is an issue for all window in MacOS Sequoia. There's no known solution at the moment. Here are my attempts: https://github.com/Hammerspoon/hammerspoon/issues/3698#issuecomment-2484062012

The current work around is to toggle the window as floating and manually drag the window to the new space. Toggle the window back from floating and it will be tiled on the new space.

mogenson avatar Nov 18 '24 20:11 mogenson

I added a way to move a window from one space to another by automating the mouse cursor in Mission Control. Please see if #57 fixes this issue.

mogenson avatar Dec 01 '24 18:12 mogenson

Merged #57

mogenson avatar Dec 06 '24 14:12 mogenson

The current work around is to toggle the window as floating and manually drag the window to the new space. Toggle the window back from floating and it will be tiled on the new space.

I've noticed that this works.

I've noticed the same that with trying to move windows from my laptop screen to my main monitor, it's very unreliable wether it'll actually move the window to the other window and tiling group.

alper avatar Mar 21 '25 15:03 alper