diff options
author | David Reveman <c99drn@cs.umu.se> | 2006-04-07 07:12:08 +0000 |
---|---|---|
committer | David Reveman <c99drn@cs.umu.se> | 2006-04-07 07:12:08 +0000 |
commit | 46399242d04a0de8e6759266e9ae724f64c79ee0 (patch) | |
tree | 8b5e3a365d8831229f6f060ceeb1aaa0d7e2148b /plugins/wobbly.c | |
parent | b0651de0a6487189a48c253b1f3453e929a30542 (diff) |
Add edge flipping to rotate plugin and hot corners to scale plugin
Diffstat (limited to 'plugins/wobbly.c')
-rw-r--r-- | plugins/wobbly.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/wobbly.c b/plugins/wobbly.c index 5fffba36..decf9edf 100644 --- a/plugins/wobbly.c +++ b/plugins/wobbly.c @@ -1754,7 +1754,7 @@ wobblyPreparePaintScreen (CompScreen *s, w->attrib.x, model->topLeft.y + w->output.top - w->attrib.y, - TRUE); + TRUE, TRUE); ww->model = model; @@ -2303,14 +2303,15 @@ wobblyWindowResizeNotify (CompWindow *w) static void wobblyWindowMoveNotify (CompWindow *w, int dx, - int dy) + int dy, + Bool immediate) { WOBBLY_SCREEN (w->screen); WOBBLY_WINDOW (w); if (ww->model) { - if (ww->grabbed) + if (ww->grabbed && !immediate) { ww->model->anchorObject->position.x += dx; ww->model->anchorObject->position.y += dy; @@ -2325,7 +2326,7 @@ wobblyWindowMoveNotify (CompWindow *w, } UNWRAP (ws, w->screen, windowMoveNotify); - (*w->screen->windowMoveNotify) (w, dx, dy); + (*w->screen->windowMoveNotify) (w, dx, dy, immediate); WRAP (ws, w->screen, windowMoveNotify, wobblyWindowMoveNotify); } |