summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/resize.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 06:52:16 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 06:52:16 +0000
commit38a7b13cfcc4b2fe2bbf9f50abe827f0f1c71c5c (patch)
tree76bd72f5070c34838e5f668885c22a2ab8689290 /beryl-plugins/src/resize.c
parent4e40b8243cab5487bdffca8f80387d17f4db3fd5 (diff)
downloadmarex-dev-38a7b13cfcc4b2fe2bbf9f50abe827f0f1c71c5c.tar.gz
marex-dev-38a7b13cfcc4b2fe2bbf9f50abe827f0f1c71c5c.tar.bz2
beryl-plugins (resize): allow wobble for all modes if it's just for peeling (closes #948)
git-svn-id: file:///beryl/trunk@3071 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/resize.c')
-rw-r--r--beryl-plugins/src/resize.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/beryl-plugins/src/resize.c b/beryl-plugins/src/resize.c
index 1aa28bf..bc11561 100644
--- a/beryl-plugins/src/resize.c
+++ b/beryl-plugins/src/resize.c
@@ -543,9 +543,14 @@ resizeInitiate(CompDisplay * d,
/* 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...) */
+
+ Bool wobbleDesired = (rd->resizeMode == ResizeModeNormal);
+ wobbleDesired |= (!(mask & ~(ResizeUpMask | ResizeDownMask))) && (w->state & CompWindowStateMaximizedVertMask);
+ wobbleDesired |= (!(mask & ~(ResizeLeftMask | ResizeRightMask))) && (w->state & CompWindowStateMaximizedHorzMask);
+
(w->screen->windowGrabNotify) (w, x, y, state,
CompWindowGrabResizeMask |
- ((rd->resizeMode == ResizeModeNormal) ? CompWindowGrabButtonMask : 0));
+ (wobbleDesired ? CompWindowGrabButtonMask : 0));
if (state & CompActionStateInitKey)
{