summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/resize.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-12 07:37:58 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-12 07:37:58 +0000
commited5b6136aaad8256a18273526ec1551f45a18961 (patch)
tree0ea74355ad8c88d171633b820e9c6cfb8c3aa1a6 /beryl-plugins/src/resize.c
parent57b82fcff4df39abb1010e60ddb00f51d6eb3b53 (diff)
downloadmarex-dev-ed5b6136aaad8256a18273526ec1551f45a18961.tar.gz
marex-dev-ed5b6136aaad8256a18273526ec1551f45a18961.tar.bz2
resize plugin: fix windows being incorrectly placed when resizing in Stretch, Outline, Filled Outline modes (closes #760)
git-svn-id: file:///beryl/trunk@2623 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/resize.c')
-rw-r--r--beryl-plugins/src/resize.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/beryl-plugins/src/resize.c b/beryl-plugins/src/resize.c
index 92df567..1aa28bf 100644
--- a/beryl-plugins/src/resize.c
+++ b/beryl-plugins/src/resize.c
@@ -202,7 +202,7 @@ static void resizeUpdateWindowRealSize(CompDisplay * d, int move_only)
if (move_only)
{
moveWindow(rd->w, rd->currentX - rd->w->attrib.x,
- rd->currentY - rd->w->attrib.y, TRUE, FALSE);
+ rd->currentY - rd->w->attrib.y, TRUE, TRUE);
syncWindowPosition(rd->w);
}
else
@@ -540,9 +540,12 @@ resizeInitiate(CompDisplay * d,
rd->releaseButton = button;
+ /* FIXME: we use CompWindowGrabButtonMask only for the normal mode
+ to prevent wobbling for the other modes
+ this is fine for now, but may break the API (documentation would be nice...) */
(w->screen->windowGrabNotify) (w, x, y, state,
- CompWindowGrabResizeMask |
- CompWindowGrabButtonMask);
+ CompWindowGrabResizeMask |
+ ((rd->resizeMode == ResizeModeNormal) ? CompWindowGrabButtonMask : 0));
if (state & CompActionStateInitKey)
{