diff options
author | maniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-02-15 20:04:55 +0000 |
---|---|---|
committer | maniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-02-15 20:04:55 +0000 |
commit | 24be8d0834504b561bf345c1ad5b18e137193a4b (patch) | |
tree | 4e2d52a68d9a2b155f847621c7e7fb470db0c1b3 | |
parent | 8dd7b691b09985e41eae01e47852760e59b1ee3e (diff) | |
download | marex-dev-24be8d0834504b561bf345c1ad5b18e137193a4b.tar.gz marex-dev-24be8d0834504b561bf345c1ad5b18e137193a4b.tar.bz2 |
group plugin: also reflect immediate parameter when enqueuing window moves
git-svn-id: file:///beryl/trunk@4089 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r-- | beryl-plugins/src/group/group.c | 4 | ||||
-rw-r--r-- | beryl-plugins/src/group/group.h | 3 | ||||
-rw-r--r-- | beryl-plugins/src/group/queues.c | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/beryl-plugins/src/group/group.c b/beryl-plugins/src/group/group.c index efe4efb..6400786 100644 --- a/beryl-plugins/src/group/group.c +++ b/beryl-plugins/src/group/group.c @@ -1440,11 +1440,11 @@ groupWindowMoveNotify(CompWindow * w, int dx, int dy, Bool immediate) if (cw->state & MAXIMIZE_STATE) { if (viewportChange) { gw->needsPosSync = TRUE; - groupEnqueueMoveNotify (cw, -dx, -dy, TRUE); + groupEnqueueMoveNotify (cw, -dx, -dy, immediate, TRUE); } } else if (!viewportChange) { gw->needsPosSync = TRUE; - groupEnqueueMoveNotify (cw, dx, dy, FALSE); + groupEnqueueMoveNotify (cw, dx, dy, immediate, FALSE); } } } diff --git a/beryl-plugins/src/group/group.h b/beryl-plugins/src/group/group.h index 6a629e1..a7573ff 100644 --- a/beryl-plugins/src/group/group.h +++ b/beryl-plugins/src/group/group.h @@ -236,6 +236,7 @@ struct _GroupPendingMoves { CompWindow *w; int dx; int dy; + Bool immediate; Bool sync; GroupPendingMoves *next; }; @@ -634,7 +635,7 @@ void groupFini(CompPlugin * p); /* * queues.c */ -void groupEnqueueMoveNotify (CompWindow *w, int dx, int dy, Bool sync); +void groupEnqueueMoveNotify (CompWindow *w, int dx, int dy, Bool immediate, Bool sync); void groupDequeueMoveNotifies (CompScreen *s); void groupEnqueueGrabNotify (CompWindow *w, int x, int y, unsigned int state, unsigned int mask); void groupDequeueGrabNotifies (CompScreen *s); diff --git a/beryl-plugins/src/group/queues.c b/beryl-plugins/src/group/queues.c index 70c8af8..e8643df 100644 --- a/beryl-plugins/src/group/queues.c +++ b/beryl-plugins/src/group/queues.c @@ -29,7 +29,7 @@ * */ -void groupEnqueueMoveNotify (CompWindow *w, int dx, int dy, Bool sync) +void groupEnqueueMoveNotify (CompWindow *w, int dx, int dy, Bool immediate, Bool sync) { GroupPendingMoves *move; @@ -43,6 +43,7 @@ void groupEnqueueMoveNotify (CompWindow *w, int dx, int dy, Bool sync) move->w = w; move->dx = dx; move->dy = dy; + move->immediate = immediate; move->sync = sync; move->next = NULL; @@ -74,7 +75,7 @@ void groupDequeueMoveNotifies (CompScreen *s) move = gs->pendingMoves; gs->pendingMoves = move->next; - moveWindow (move->w, move->dx, move->dy, TRUE, FALSE); + moveWindow (move->w, move->dx, move->dy, TRUE, move->immediate); if (move->sync) syncWindowPosition(move->w); |