Remove unused variables, cosmetics

This commit is contained in:
Mathias Gumz 2013-02-10 12:21:29 +01:00
parent b039122182
commit cf56f32b29

View file

@ -1321,28 +1321,28 @@ void Remember::setupFrame(FluxboxWindow &win) {
int win_w, win_h; int win_w, win_h;
if(app->dimension_is_relative) { if(app->dimension_is_relative) {
int head = screen.getHead(win.fbWindow()); int head = screen.getHead(win.fbWindow());
int screen_y = screen.maxBottom(head) - screen.maxTop(head); win_w = screen.calRelativeWidth(head, app->w);
win_w = screen.calRelativeWidth(head, app->w); win_h = screen.calRelativeHeight(head, app->h);
win_h = screen.calRelativeHeight(head, app->h);
} else { } else {
win_w = app->w; win_w = app->w;
win_h = app->h; win_h = app->h;
} }
win.resize(win_w, win_h); win.resize(win_w, win_h);
} }
if (app->position_remember) { if (app->position_remember) {
int newx, newy; int newx, newy;
if(app->position_is_relative) { if(app->position_is_relative) {
int head = screen.getHead(win.fbWindow()); int head = screen.getHead(win.fbWindow());
newx = screen.calRelativeWidth(head, app->x); newx = screen.calRelativeWidth(head, app->x);
newy = screen.calRelativeHeight(head, app->y); newy = screen.calRelativeHeight(head, app->y);
} else { } else {
newx = app->x, newy = app->y; newx = app->x;
} newy = app->y;
win.translateCoords(newx, newy, app->refc); }
win.move(newx, newy); win.translateCoords(newx, newy, app->refc);
win.move(newx, newy);
} }
if (app->shadedstate_remember) if (app->shadedstate_remember)