summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-09-11 17:08:20 +0200
committerDanny Baumann <dannybaumann@web.de>2007-09-11 17:08:20 +0200
commit28784c90b95dc74dc89f2ed73d193279520bb04d (patch)
tree0af694c4ae9b3fbaa2baaa0a24a95584fab12f05
parentec06e5a5efe04c1beecf30fa22d2ebf7cdd8d2be (diff)
downloadgroup-28784c90b95dc74dc89f2ed73d193279520bb04d.tar.gz
group-28784c90b95dc74dc89f2ed73d193279520bb04d.tar.bz2
Next attempt at fixing move logic.
-rw-r--r--group.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/group.c b/group.c
index 4ff27a0..9092756 100644
--- a/group.c
+++ b/group.c
@@ -1832,23 +1832,21 @@ groupWindowMoveNotify (CompWindow *w,
gw->destination.x += dx;
gw->destination.y += dy;
- if (cw->state & MAXIMIZE_STATE)
+ if (gw->group->tabBar)
+ {
+ groupEnqueueMoveNotify (cw, dx, dy, immediate,
+ !(gw->group->grabMask &
+ CompWindowGrabMoveMask));
+ }
+ else if (cw->state & MAXIMIZE_STATE)
{
if (viewportChange)
groupEnqueueMoveNotify (cw, -dx, -dy, immediate, TRUE);
}
- else if (!viewportChange || gw->group->tabBar)
+ else if (!viewportChange)
{
- Bool needImmediateSync = FALSE;
-
- if (gw->group->tabBar &&
- !(gw->group->grabMask & CompWindowGrabMoveMask))
- {
- needImmediateSync = TRUE;
- }
-
gw->needsPosSync = TRUE;
- groupEnqueueMoveNotify (cw, dx, dy, immediate, needImmediateSync);
+ groupEnqueueMoveNotify (cw, dx, dy, immediate, FALSE);
}
}
}