aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/LSession.cpp14
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()) );
+ }
}
}
bgstack15