summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.c
diff options
context:
space:
mode:
authorguillaume <guillaume@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-26 12:34:58 +0000
committerguillaume <guillaume@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-26 12:34:58 +0000
commit1dea606ed881a9ee86f8048d46b0d736cfa9830f (patch)
treee41f0b8679664b2b61adee72e630a0ce5667297d /beryl-plugins/src/wobbly.c
parent299a517af8cd8be85d90efa5313de7810ee39d03 (diff)
downloadmarex-dev-1dea606ed881a9ee86f8048d46b0d736cfa9830f.tar.gz
marex-dev-1dea606ed881a9ee86f8048d46b0d736cfa9830f.tar.bz2
beryl-core, beryl-plugins : add preview argument to resizeNotify
git-svn-id: file:///beryl/trunk@3166 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index 849df72..8e54129 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -3033,12 +3033,12 @@ static Bool wobblyDamageWindowRect(CompWindow * w, Bool initial, BoxPtr rect)
}
static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy,
- int dwidth, int dheight)
+ int dwidth, int dheight, Bool preview)
{
WOBBLY_SCREEN(w->screen);
WOBBLY_WINDOW(w);
- if (ws->opt[WOBBLY_SCREEN_OPTION_MAXIMIZE_EFFECT].value.b &&
+ if (!preview && ws->opt[WOBBLY_SCREEN_OPTION_MAXIMIZE_EFFECT].value.b &&
isWobblyWin(w) && ((w->state | ww->state) & MAXIMIZE_STATE))
{
ww->state &= ~MAXIMIZE_STATE;
@@ -3079,7 +3079,7 @@ static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy,
damagePendingOnScreen(w->screen);
}
}
- else if (ww->model)
+ else if (!preview && ww->model)
{
if (!ww->wobbly)
modelInitObjects(ww->model,
@@ -3089,7 +3089,7 @@ static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy,
}
/* update grab */
- if (ww->model && ww->grabbed)
+ if (!preview && ww->model && ww->grabbed)
{
if (ww->model->anchorObject)
ww->model->anchorObject->immobile = FALSE;
@@ -3107,7 +3107,7 @@ static void wobblyWindowResizeNotify(CompWindow * w, int dx, int dy,
}
UNWRAP(ws, w->screen, windowResizeNotify);
- (*w->screen->windowResizeNotify) (w, dx, dy, dwidth, dheight);
+ (*w->screen->windowResizeNotify) (w, dx, dy, dwidth, dheight, preview);
WRAP(ws, w->screen, windowResizeNotify, wobblyWindowResizeNotify);
}