summaryrefslogtreecommitdiff
path: root/plugins/wobbly.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wobbly.c')
-rw-r--r--plugins/wobbly.c9
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);
}