summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Young <rcxdude@gmail.com>2008-05-25 15:25:51 +0100
committerDouglas Young <rcxdude@gmail.com>2008-05-25 15:25:51 +0100
commiteded547853be5b6e2e24bb4783cc9a42b761e941 (patch)
tree4d52648c5ea149aaf03826e59414b63dd0683725
parentce375da4ed5f7df9a06f9872aaf8c38085298f41 (diff)
downloaddodge-eded547853be5b6e2e24bb4783cc9a42b761e941.tar.gz
dodge-eded547853be5b6e2e24bb4783cc9a42b761e941.tar.bz2
remove viewport change detection because moveWindowNotify provides same functionality
-rw-r--r--dodge.c22
-rw-r--r--dodge.xml.in1
2 files changed, 0 insertions, 23 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)
{
diff --git a/dodge.xml.in b/dodge.xml.in
index f750e56..c79f3d9 100644
--- a/dodge.xml.in
+++ b/dodge.xml.in
@@ -68,7 +68,6 @@
<_long>Controls whether the active window will be dodged</_long>
<default>false</default>
</option>
-
<option name="spring_k" type="float">
<_short>Spring K</_short>
<_long>Spring Stiffness</_long>