store geom_pretile on maximization as well
parent
0b1599680d
commit
b42ae48280
|
@ -2143,10 +2143,17 @@ void Client::changeMaximize(bool vertical, bool horizontal, bool adjust)
|
||||||
if (!adjust && !(old_mode & MaximizeVertical)) {
|
if (!adjust && !(old_mode & MaximizeVertical)) {
|
||||||
geom_restore.setTop(y());
|
geom_restore.setTop(y());
|
||||||
geom_restore.setHeight(height());
|
geom_restore.setHeight(height());
|
||||||
|
// we can fall from maximize to tiled
|
||||||
|
// TODO unify quicktiling and regular maximization
|
||||||
|
geom_pretile.setTop(y());
|
||||||
|
geom_pretile.setHeight(height());
|
||||||
}
|
}
|
||||||
if (!adjust && !(old_mode & MaximizeHorizontal)) {
|
if (!adjust && !(old_mode & MaximizeHorizontal)) {
|
||||||
geom_restore.setLeft(x());
|
geom_restore.setLeft(x());
|
||||||
geom_restore.setWidth(width());
|
geom_restore.setWidth(width());
|
||||||
|
// see above
|
||||||
|
geom_pretile.setLeft(x());
|
||||||
|
geom_pretile.setWidth(width());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!adjust) {
|
if (!adjust) {
|
||||||
|
|
Loading…
Reference in New Issue