From 85b5582cc499173ef833b7aecfdd77671af446a4 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 29 Sep 2015 09:39:57 -0400 Subject: Adjust the window geometry movement routine a bit more. Now it will only run the no-frame movement routine if the window is at the top of the screen. --- lumina-desktop/LSession.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index 660e4c2b..e81cdebf 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -578,14 +578,14 @@ void LSession::adjustWindowGeom(WId win, bool maximize){ if(DEBUG){ qDebug() << " - New Geom:" << geom << fgeom; } - //Note: Fluxbox treats this weird, the origin point needs to be the total (frame included), - // but the size needs to be the raw (no frame) value - //if(XCB->WindowClass(win)=="Take Screenshot"){ - //Not sure why: but Fluxbox treats lumina-screenshot differently + + if(fgeom.y() <= desk.y()){ + //This is a window on the top of the screen - use the window geom only (no frame included) XCB->MoveResizeWindow(win, geom); - //}else{ - //XCB->MoveResizeWindow(win, QRect(fgeom.topLeft(), geom.size()) ); - //} + }else{ + //Need to use the frame origin point with the window size (for some reason - strange Fluxbox issue) + XCB->MoveResizeWindow(win, QRect(fgeom.topLeft(), geom.size()) ); + } } } -- cgit