Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Move windows between Spaces via drag Desktop
I don't know if this known by all Mac users, but you can move a window from a space to another by just dragging the window to the limit of the screen. If you wait a few seconds, the window slides (and the screen also!) from the original space to the other one.

Just try this: starting from the main space (I assume you have 2x2 spaces) drag a window to the right. Wait a few seconds and you go to space two. Then move the window down and wait, and you go to space three. Now move the window to the left, you are on space four. To finish, push the window up to the menu bar, and you are back to space one.

[robg adds: There's a key in the Dock named workspaces-edge-delay with a value of 0.75. I had guessed this was the delay before the window slid into the next space, but changing it and restarting the Dock (and Spaces) didn't seem to make any difference. There's another interesting key there named workspaces-wrap-arrows, which I thought might remove the 'wall' when you try to go, for instance, left from the leftmost space, but no luck. If anyone manages to figure these out, please post in the comments.]
    •    
  • Currently 4.33 / 5
  You rated: 5 / 5 (6 votes cast)
 
[37,335 views]  

10.5: Move windows between Spaces via drag | 7 comments | Create New Account
Click here to return to the '10.5: Move windows between Spaces via drag' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Move windows between Spaces via drag
Authored by: ossiejnr on Oct 30, '07 08:39:55AM

I found that if you grab the window you want to move and while holding down the mouse button, press CTRL-# - where # is the number of the space you want to move the window to. The window is then moved. Easy!



[ Reply to This | # ]
10.5: Move windows between Spaces via drag
Authored by: macavenger on Oct 30, '07 09:00:49AM

Yeah, I submitted that one as a hint a couple of days ago...we'll see if it get published. But if this one (which I seem to recall being mentioned in some official apple demonstration or announcement) got published, I guess that means mine has a chance as well :)

---
Aluminum iMac 20" 2.4 GHz/3GB/300GB HD



[ Reply to This | # ]
10.5: Move windows between Spaces via drag
Authored by: pfschill on Oct 30, '07 09:34:05AM
Arg, I am having a heck of a morning. I didn't mean to post my comment as a reply to a comment, then posted to the wrong article. 3rd times the charm I hope.

From my testing it seems that workspaces-edge-delay only takes whole seconds which seems very odd. A nice .5 is what I liked on Linux as I recall. I set mine to 0:

defaults write com.apple.dock workspaces-edge-delay -int 0; killall Dock

It is a pretty rare occasion where I accidentally am dragging a window and bump the screen edge, so it works well for me to have it instantly move to the next space. You also have to hold the mouse still when you hit the edge. Any movement seems to keep the clock running on the delay.

workspaces-wrap-arrows changes the behavior if you use control + arrow to move to the next space. With it turned on it will wrap around. So with a 2x2 grid you can just keep pressing control+left to cycle through all the spaces. If you set this to NO it won't keep going. Once you get to space 2 it will stay there. You must go right or down to move

defaults write com.apple.dock workspaces-wrap-arrows -boolean NO; killall Dock

[ Reply to This | # ]
10.5: Move windows between Spaces via drag
Authored by: Quux on Oct 30, '07 11:38:35AM

The reason you could only set it to whole numbers was because you used -int (integer) rather than -float (floating-point). Integers, predictably, only allow inegers for their values, while floating-point values allow any number.



[ Reply to This | # ]
10.5: Move windows between Spaces via drag
Authored by: beba on Oct 30, '07 09:43:39AM

To set delays smaller than a second, use

defaults write com.apple.dock workspaces-edge-delay -float 0.5; killall Dock

Without -float, the number is stored as a string, and it does not work.



[ Reply to This | # ]
10.5: Move windows between Spaces via drag
Authored by: iamQ on Nov 10, '07 02:55:57AM

Can the wrap be toggled on for dragging?

i have two monitors, and it would be nice to just drag to one edge and be able to get (eventually) to whichever space i need to get to.

Wish i could figure it out for myself, but i'm a newb at all this terminal command line stuff.



[ Reply to This | # ]
10.5: Move windows between Spaces via drag
Authored by: TrueRoot on Feb 07, '11 04:06:42PM
Great advice from pfschill. I'd like to add that if you want a value for the delay which isn't a whole number you have to use -float x instead of -int x. I.e.,
defaults write com.apple.dock workspaces-edge-delay -float 0.5; killall Dock


[ Reply to This | # ]