From ec59c1507c252d2b8c0fdbe579ff6fbb764a5cb3 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Sat, 20 Jun 2015 11:27:36 -0400 Subject: Fix up the adjustment of new windows to account for the frame (in the vertical dimension only at the moment). --- lumina-desktop/LSession.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lumina-desktop') diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index 040c27de..dfbd88b5 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -509,7 +509,10 @@ void LSession::adjustWindowGeom(WId win, bool maximize){ if(geom.x() < desk.x()){ geom.moveLeft(desk.x()); } //move right to the edge (left panel) //Adjust size for bottom margins (within reason, since window titles are on top normally) // if(geom.right() > desk.right() && (geom.width() > 100)){ geom.setRight(desk.right()); } - if(geom.bottom() > desk.bottom() && geom.height() > 100){ geom.setBottom(desk.bottom()); } + if(geom.bottom() > desk.bottom() && geom.height() > 100){ + //Also adjust the sizing for the frame (the moveResize fuction is for the base window only) + geom.setBottom(desk.bottom()-frame[0]-frame[1]); + } //Now move/resize the window if(DEBUG){ qDebug() << " - New Geom:" << geom.x() << geom.y() << geom.width() << geom.height(); } XCB->MoveResizeWindow(win, geom); -- cgit