summaryrefslogtreecommitdiff
path: root/dodge.c
diff options
context:
space:
mode:
Diffstat (limited to 'dodge.c')
-rw-r--r--dodge.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/dodge.c b/dodge.c
index 07017f7..d1b0e2f 100644
--- a/dodge.c
+++ b/dodge.c
@@ -74,9 +74,6 @@ typedef struct _DodgeScreen
int px;
int py;
- int ox;
- int oy; /* the previous viewport position */
-
int model;
int padding;
float springk;
@@ -292,23 +289,6 @@ dodgePreparePaintScreen (CompScreen *s,
return;
}
- /* update original positions to prevent windows springing to new viewport */
- if ((ds->ox != s->x || ds->oy != s->y) &&
- ds->active)
- {
- for (w = s->windows; w; w = w->next)
- {
- DODGE_WINDOW (w);
- if (dw->isdodge && !(w->state & CompWindowStateStickyMask))
- {
- dw->ox -= (s->x - ds->ox) * s->width;
- dw->oy -= (s->y - ds->oy) * s->height;
- }
- }
- ds->ox = s->x;
- ds->oy = s->y;
- }
-
if (ds->active)
{
ds->movelock = TRUE;
@@ -429,8 +409,6 @@ dodgeToggle (CompDisplay *d,
ds->springk = dodgeGetSpringK (d);
ds->friction = dodgeGetFriction (d);
ds->padding = dodgeGetPadding (d);
- ds->ox = s->x;
- ds->oy = s->y;
CompWindow *w;
for (w = s->windows; w; w = w->next)
{