summaryrefslogtreecommitdiff
path: root/src/core/edge-resistance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/edge-resistance.c')
-rw-r--r--src/core/edge-resistance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/edge-resistance.c b/src/core/edge-resistance.c
index aa4fcb6a..8a0d1854 100644
--- a/src/core/edge-resistance.c
+++ b/src/core/edge-resistance.c
@@ -285,7 +285,6 @@ find_nearest_position (const GArray *edges,
if (dist < best_dist)
{
best = compare;
- best_dist = dist;
}
break;
}
@@ -461,7 +460,6 @@ apply_edge_resistance (MetaWindow *window,
*/
/* First, determine the threshold */
- threshold = 0;
switch (edge->edge_type)
{
case META_EDGE_WINDOW:
@@ -482,6 +480,8 @@ apply_edge_resistance (MetaWindow *window,
else
threshold = PIXEL_DISTANCE_THRESHOLD_AWAYFROM_SCREEN;
break;
+ default:
+ threshold = 0;
}
if (ABS (compare - new_pos) < threshold)