Change the Delay When Dragging Windows Within Spaces on Mac

Feb 10, 2010 - 8 Comments

spaces mac Spaces is a really nice feature of Mac OS X that lets you place different windows and applications within their own workspace. Dragging a window to a new Space is just a matter of holding onto the window and pulling it towards the end of the screen.

You may have noticed that there’s a delay when dragging a window to a new space, which is handy for not accidentally dragging windows into a new Space but kind of annoying if you are expecting it to enter a new workspace instantly. The instant switching of workspaces is a lot closer to how these workspace managers, or ‘virtual desktops’ work in the Unix world, and if you have a background of using a Linux desktop you may miss that instant desktop switching.

You can change the timing of Spaces switching rather easily though, using the Terminal.

How to change the delay when dragging windows or applications within Spaces on Mac

Launch the Terminal, found within the /Applications/Utilities/ folder, and enter the following defaults string at the command line:

defaults write com.apple.dock workspaces-edge-delay -float 0.1

Hit return, and you’ll want to log out and back in for the full effect to be seen (or at least refresh WindowServer and related processes).

The number on the end represents the wait time, the default is set to 0.75 (or 3/4 of a second), so 0.5 is half a second, 0.1 is a tenth of a second, and so on. If you use the above command and 0.1 you’ll get a near instant switching of spaces.

Mission Control Spaces in Mac OS X

Changing Back to Default Spaces Delay

If you want to revert to the default setting, just specify it as so:

defaults write com.apple.dock workspaces-edge-delay -float 0.75

This works in all versions of Mac OS and Mac OS X that support the Spaces feature within Mission Control or Expose.

.

Related articles:

Posted by: Bill Ellis in Command Line, Mac OS, Tips & Tricks

8 Comments

» Comments RSS Feed

  1. Dante says:

    Still works in Sierra. Fantastic. Thanks

  2. old tip that doesnt work in Mountain Lion. )=

  3. […] You can also speed up the Spaces transitions by adjusting the time it takes to drag windows between desktops. […]

  4. keezy says:

    Thanks for the trick. Do you know how to set the delay for launching expose when clicking and holding mouse on an icon in the dock? in my opinion this delay is a little bit to long now.
    keezy

  5. Numpty says:

    @Kevin: You must have something else installed that’s doing that, because Spaces.app doesn’t do it on its own.

  6. Kevin Trumbull says:

    There’s a far simpler way to do this already.

    Grab a window with the mouse, like you’re going to drag it somewhere…

    While holding the mouse button down hit the number of the desktop you want the window moved to (1, 2, 3, or 4) and the control (ctrl) key at the same time.

    The desktop will instantly switch to the selected desktop number, and your window will now be on that desktop.

    I just did this by clicking and holding the mouse button down on the title bar of Firefox and hitting ctrl & 2 at the same time. This window is now on desktop #2.

    – Kevin

  7. Owen Imholte says:

    Just a note that if you want this to take effect (or play with settings to get the feel you want) right away you’ll have to follow it with:

    killall Dock

    which restarts the dock without logging out/in.

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site