removed unnecessary alignments in mouse.c

This commit is contained in:
Anselm R. Garbe 2006-03-23 17:02:35 +01:00
parent 14d5ff7f95
commit 199c419bd8

View File

@ -29,14 +29,6 @@ xy2align(XRectangle *rect, int x, int y)
return SEAST; return SEAST;
else if(sw) else if(sw)
return SWEST; return SWEST;
else if(w)
return WEST;
else if(e)
return EAST;
else if(n)
return NORTH;
else if(s)
return SOUTH;
return CENTER; return CENTER;
} }
@ -301,7 +293,6 @@ snap_resize(XRectangle * r, XRectangle * o, Align align,
/* x */ /* x */
switch (align) { switch (align) {
case NEAST: case NEAST:
case EAST:
case SEAST: case SEAST:
w = px - r->x + (o->width - ox); w = px - r->x + (o->width - ox);
if(w < 10) if(w < 10)
@ -338,7 +329,6 @@ snap_resize(XRectangle * r, XRectangle * o, Align align,
} }
break; break;
case NWEST: case NWEST:
case WEST:
case SWEST: case SWEST:
w = r->width + r->x - px + ox; w = r->width + r->x - px + ox;
if(w < 10) if(w < 10)
@ -387,7 +377,6 @@ snap_resize(XRectangle * r, XRectangle * o, Align align,
pend = 0; pend = 0;
switch (align) { switch (align) {
case SWEST: case SWEST:
case SOUTH:
case SEAST: case SEAST:
h = py - r->y + (o->height - oy); h = py - r->y + (o->height - oy);
if(h < 10) if(h < 10)
@ -424,7 +413,6 @@ snap_resize(XRectangle * r, XRectangle * o, Align align,
} }
break; break;
case NWEST: case NWEST:
case NORTH:
case NEAST: case NEAST:
h = r->height + r->y - py + oy; h = r->height + r->y - py + oy;
if(h < 10) if(h < 10)