summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-31 07:39:38 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-31 07:39:38 +0000
commite2788322b5fe112559ac3cccad6a1985a5b338f4 (patch)
treeb8080c2a1b9a5c29181722667b65ebbaf6a03d8d /beryl-plugins/src/wobbly.c
parenta71a2116fc5120e2a34135271c5f3b96fe87707f (diff)
downloadmarex-dev-e2788322b5fe112559ac3cccad6a1985a5b338f4.tar.gz
marex-dev-e2788322b5fe112559ac3cccad6a1985a5b338f4.tar.bz2
- remove some code unneeded after properly fixing moveResizeWindow
- also use moveResizeWindow on resize cancel - X functions should only be called from core git-svn-id: file:///beryl/trunk@919 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index 1b3274a..c86b448 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -2313,16 +2313,9 @@ wobblyPreparePaintScreen (CompScreen * s, int msSinceLastPaint)
}
else if (!ww->model->transformed)
{
- 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);
- //update the model coordinates to the current ones
- model->topLeft.x = w->attrib.x;
- model->topLeft.y = w->attrib.y;
- }
+ moveWindow (w,
+ model->topLeft.x + w->output.left - w->attrib.x,
+ model->topLeft.y + w->output.top - w->attrib.y, TRUE, TRUE);
ww->model = model;