diff options
author | Ken Moore <moorekou@gmail.com> | 2015-09-29 09:39:57 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-09-29 09:39:57 -0400 |
commit | 85b5582cc499173ef833b7aecfdd77671af446a4 (patch) | |
tree | 52bcb3478b5c543802bb060003df5412205c31eb | |
parent | Oops - make sure the STARTAPPS variable is saved within the private MainUI cl... (diff) | |
download | lumina-85b5582cc499173ef833b7aecfdd77671af446a4.tar.gz lumina-85b5582cc499173ef833b7aecfdd77671af446a4.tar.bz2 lumina-85b5582cc499173ef833b7aecfdd77671af446a4.zip |
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.
-rw-r--r-- | lumina-desktop/LSession.cpp | 14 |
1 files 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()) ); + } } } |