summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-09-11 11:55:11 +0200
committerDanny Baumann <dannybaumann@web.de>2007-09-11 11:55:11 +0200
commit72bd1930c3d777d8ba13fd2f5f5b3bef0f1de85d (patch)
tree4ff5dd0db6bbec5bc377b6c8f355aaccb4c5dd36
parent6b42a5a91421c7b29027de21e027040bf6120902 (diff)
downloadgroup-72bd1930c3d777d8ba13fd2f5f5b3bef0f1de85d.tar.gz
group-72bd1930c3d777d8ba13fd2f5f5b3bef0f1de85d.tar.bz2
Prevent tab position desynchronization on movements not initiated by the move plugin.
-rw-r--r--group.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/group.c b/group.c
index dff0a5a..106b952 100644
--- a/group.c
+++ b/group.c
@@ -1765,7 +1765,6 @@ groupWindowMoveNotify (CompWindow *w,
{
CompScreen *s = w->screen;
Bool viewportChange;
- Bool preventGroupMove;
int i;
GROUP_SCREEN (s);
@@ -1810,14 +1809,13 @@ groupWindowMoveNotify (CompWindow *w,
}
}
- preventGroupMove = gd->ignoreMode && !gw->group->tabBar;
-
- if (!groupGetMoveAll (s) || preventGroupMove ||
+ if (!groupGetMoveAll (s) || gd->ignoreMode ||
(gw->group->tabbingState != NoTabbing) ||
(gw->group->grabWindow != w->id) ||
!(gw->group->grabMask & CompWindowGrabMoveMask))
{
- return;
+ if (!gw->group->tabBar)
+ return;
}
for (i = 0; i < gw->group->nWins; i++)
@@ -1845,7 +1843,8 @@ groupWindowMoveNotify (CompWindow *w,
else if (!viewportChange)
{
gw->needsPosSync = TRUE;
- groupEnqueueMoveNotify (cw, dx, dy, immediate, FALSE);
+ groupEnqueueMoveNotify (cw, dx, dy, immediate,
+ (gw->group->tabBar != NULL));
}
}
}