View Full Version : Snapping windows and Expo
jhnphm
July 13th, 2007, 04:07 AM
Dragging windows between desktops seems to be very difficult when window snapping is enabled with both resistance and attraction- perhaps the snap plugin should be temporarily disabled while in expo? Workaround for now seems to be the avoid snap modifier.
Also what about a way to invert the snap behavior, i.e. enable it when the snap modifier is active, instead of disabling it when it is active?
Deciare
July 13th, 2007, 04:31 AM
Are you speaking of the Wobbly plugin? If so, then it should already be possible to invert the snap modifier's behaviour by adjusting the option at ccsm->Wobbly Windows->Snap Inverted.
If you're talking about Snap (Snapping Windows)... It might be nice to add that option for consistency's sake.
As for snapping windows in Expo mode, I'd actually like to see something like the opposite of what you suggest. ^^; With the Snap plugin, since I set my snap distance to a relatively low value of 10 pixels, it's hard to snap anything at all while in Expo mode... Because it's very difficult to manoeuvre with that much precision when the viewports are zoomed out. I'd like to see a way to automatically increase the snapping distance when in Expo mode.
Conversely, if such a setting is implemented, then it could also be used to automatically decrease the snapping distance in Expo mode, thus solving your problem as well.
stjepan
July 14th, 2007, 12:08 AM
Use this patch for snap.c:
[code:bdc9c]index 4bd7b43..04ac331 100644
--- a/src/snap/snap.c
+++ b/src/snap/snap.c
@@ -898,6 +898,9 @@ snapWindowMoveNotify(CompWindow * w, int dx, int dy, Bool immediate)
return;
}
+ // expo mode
+ if (!otherScreenGrabExist(w->screen, "expo", 0)) return;
+
// avoiding snap, nothing buffered
if (!sd->snapping)
return;[/code:bdc9c]
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.