about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-31 09:02:16 +0100
committerarg@mig29 <unknown>2006-10-31 09:02:16 +0100
commit04b633ddf394fccf5a3125ea17239bad6997c8df (patch)
tree823de25b5dea47fccac86ed2d5ea353b36ce4405
parentb76561a21258f69f7be946dc6a722843a4a42fab (diff)
downloaddwm-04b633ddf394fccf5a3125ea17239bad6997c8df.tar.gz
make sure that changing sx has no impact on snapping 2.0
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index 19db371..e3bdea4 100644
--- a/event.c
+++ b/event.c
@@ -48,7 +48,7 @@ movemouse(Client *c) {
 			XSync(dpy, False);
 			c->x = ocx + (ev.xmotion.x - x1);
 			c->y = ocy + (ev.xmotion.y - y1);
-			if(abs(c->x) < SNAP)
+			if(abs(sx + c->x) < SNAP)
 				c->x = sx;
 			else if(abs((sx + sw) - (c->x + c->w)) < SNAP)
 				c->x = sw - c->w - 2 * BORDERPX;
'>136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218