Cosmetics.

SVN revision: 61647
This commit is contained in:
Kim Woelders 2011-07-24 10:20:57 +00:00
parent c02f80c23c
commit ecb4087714
3 changed files with 7 additions and 6 deletions

View File

@ -748,7 +748,6 @@ IpcWinop(const WinOp * wop, EWin * ewin, const char *prm)
SetEwinBoolean(wop->name, &on, param1, 1);
ewin->props.ignorearrange = on;
goto ewin_update_snap_flags;
break;
case EWIN_OP_NEVER_USE_AREA:
on = ewin->props.never_use_area;

View File

@ -410,8 +410,8 @@ MagwinEvent(Win win __UNUSED__, XEvent * ev, void *prm)
break;
scale = pow(2., (double)(mw->scale) / Conf.magwin.zoom_res);
mw->cx = mw->stroke_cx - dx / scale;
mw->cy = mw->stroke_cy - dy / scale;
mw->cx = mw->stroke_cx - (int)(dx / scale);
mw->cy = mw->stroke_cy - (int)(dy / scale);
mw->update = 1;
}
else if (mw->grabbing)

View File

@ -711,7 +711,8 @@ pareto_maximizer(EWin * ewin, int type, EWin * const *lst, int num,
ld++;
}
new_w = 1 - ld + rd;
trim = new_w - new_h * ewin->icccm.aspect_min;
trim =
new_w - (int)(new_h * ewin->icccm.aspect_min);
}
while (trim > 0);
Dprintf("ld now %d, rd now %d\n", ld, rd);
@ -733,7 +734,8 @@ pareto_maximizer(EWin * ewin, int type, EWin * const *lst, int num,
td++;
}
new_h = 1 - td + bd;
trim = new_h - new_w / ewin->icccm.aspect_min;
trim =
new_h - (int)(new_w / ewin->icccm.aspect_min);
}
while (trim > 0);
Dprintf("ld now %d, rd now %d\n", ld, rd);
@ -811,7 +813,7 @@ MaxSizeHV(EWin * ewin, const char *resize_type, int hor, int ver)
/* Figure out target state */
if (hor && ver)
{
hor = ver = (old_hor && old_ver) ? 0 : 1;
hor = ver = ((old_hor && old_ver) ? 0 : 1);
}
else
{