summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.c
diff options
context:
space:
mode:
authorixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-29 12:02:44 +0000
committerixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-29 12:02:44 +0000
commit0f14010c0c094de04217a9d545f85e218c96f21e (patch)
treec667b2831203290dee8304daf35d91dd0f23d1eb /beryl-plugins/src/wobbly.c
parent9aa4bb98ca45fd82ecc114c3060386618c2c8f5f (diff)
downloadmarex-dev-0f14010c0c094de04217a9d545f85e218c96f21e.tar.gz
marex-dev-0f14010c0c094de04217a9d545f85e218c96f21e.tar.bz2
* Fix most problems introduces by resize changes, including the moved windows jump one (maniac103)
git-svn-id: file:///beryl/trunk@867 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index b429496..321539d 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -2313,13 +2313,19 @@ wobblyPreparePaintScreen (CompScreen * s, int msSinceLastPaint)
}
else if (!ww->model->transformed)
{
- ww->model = model;
+ if (!(IPCS_GetBoolND (IPCS_OBJECT(w), "WOBBLY_WAS_RESIZED", FALSE))) {
+ moveWindow (w,
+ model->topLeft.x + w->output.left - w->attrib.x,
+ model->topLeft.y + w->output.top - w->attrib.y, TRUE, TRUE);
+ } else IPCS_SetBoolN(IPCS_OBJECT(w), "WOBBLY_WAS_RESIZED", FALSE);
+
+ ww->model = model;
syncWindowPosition (w);
}
if (!(s->damageMask & COMP_SCREEN_DAMAGE_ALL_MASK))
- {
+ {
if (ww->wobbly)
{
if (ww->model->topLeft.x < topLeft.x)