{"id":2251,"date":"2012-06-18T14:17:36","date_gmt":"2012-06-18T21:17:36","guid":{"rendered":"http:\/\/manytricks.com\/blog\/?p=2251"},"modified":"2015-09-06T07:17:10","modified_gmt":"2015-09-06T14:17:10","slug":"how-to-fix-the-moom-snap-and-desktops-issue","status":"publish","type":"post","link":"https:\/\/manytricks.com\/blog\/?p=2251","title":{"rendered":"How-to: Fix the Moom snap and Desktops issue"},"content":{"rendered":"<p><!--RGSupportContent-->As cool as <a href=\"\/moom\">Moom<\/a> 3&#8217;s new &#8216;snap to edges&#8217; feature is, there&#8217;s one annoying issue that we can&#8217;t solve within Moom: if you use Desktops (Spaces in 10.6), the drag-to-edge action is used by OS X to move windows between Desktops\/Spaces. If you also use Moom&#8217;s snap to edges feature, there&#8217;s an obvious issue, wherein a window may both resize and be moved to another Desktop\/Space. Not good, obviously.<\/p>\n<p>Unfortunately, we have no control over this action, as it&#8217;s owned by OS X. Nor do you, the user, have any control over it: it&#8217;s always enabled, with no pref to disable it. Thankfully, there is a way around the issue, such that you can use both Moom&#8217;s &#8216;snap to edges&#8217; and OS X&#8217;s &#8216;drag to new Desktop\/Space&#8217; features together.<br \/>\n<!--more--><br \/>\nThe workaround is to change OS X&#8217;s activation delay for the &#8216;drag to new Desktop\/Space&#8217; feature. Do this by opening Terminal, pasting the following line, and then pressing Return:<\/p>\n<p><tt>defaults write com.apple.dock workspaces-edge-delay -float 10<\/tt><\/p>\n<p>You won&#8217;t see any output, just the cursor on a new blank line. Once you see that, paste this into Terminal, and press Return:<\/p>\n<p><tt>killall Dock<\/tt><\/p>\n<p>These two commands work like this. The first sets the delay before OS X&#8217;s &#8216;drag to new Desktop\/Space&#8217; feature activates to 10 seconds. The second line restarts the Dock, as otherwise, the change you&#8217;ve just made won&#8217;t take effect (the Dock controls the feature). You can experiment with values other than <tt>10<\/tt>, but you want a delay that&#8217;s long enough to let you use snap-to-edges without moving to another Desktop\/Space. Personally, I find that <tt>5<\/tt> works well.<\/p>\n<p>(Alternatively, if you want to use Desktops\/Spaces, but never ever have the drag-to-edge feature do anything, set a huge value, such as <tt>600<\/tt>, which would require you holding the window against a screen edge for 10 minutes before it moves to another Desktop\/Space.)<\/p>\n<p>Once the drag-to-Desktop\/Space action does take effect, it will do so showing Moom&#8217;s preview of your edge-drag resize. You don&#8217;t, however, have to resize the window: just drag it off the screen edge prior to releasing the mouse button, and the window will simply be moved (at its current size) into the new Desktop\/Space.<\/p>\n<p>If you ever want to undo this change, just use this Terminal command (followed by Return):<\/p>\n<p><tt>defaults delete com.apple.dock workspaces-edge-delay<\/tt><\/p>\n<p>You&#8217;ll also have to repeat the <tt>killall Dock<\/tt> command, of course. (This doesn&#8217;t remove the drag-to-edges feature, it removes the custom delay value you&#8217;ve set.)<\/p>\n<p>A tip of the Many Tricks&#8217; hat to <a href=\"https:\/\/twitter.com\/#!\/smokeymouse\">@SmokeyMouse<\/a>, who found this solution and let us know about it.<!--\/RGSupportContent--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As cool as Moom 3&#8217;s new &#8216;snap to edges&#8217; feature is, there&#8217;s one annoying issue that we can&#8217;t solve within Moom: if you use Desktops (Spaces in 10.6), the drag-to-edge action is used by OS X to move windows between Desktops\/Spaces. If you also use Moom&#8217;s snap to edges feature, there&#8217;s an obvious issue, wherein [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28,4],"tags":[],"coauthors":[21],"class_list":["post-2251","post","type-post","status-publish","format-standard","hentry","category-moom","category-products"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2251"}],"version-history":[{"count":18,"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2251\/revisions"}],"predecessor-version":[{"id":3510,"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2251\/revisions\/3510"}],"wp:attachment":[{"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2251"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/manytricks.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcoauthors&post=2251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}