aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-23 08:09:02 -0400
committerKen Moore <moorekou@gmail.com>2015-10-23 08:09:02 -0400
commit59acffc7a3de0c2272a5cce2f19d2853afa0f2e6 (patch)
tree67d26800ee6481ee3250ac04db6826e963ddd9e5
parentAlso add the symbolic link emblem overlay to the items in the desktopview plu... (diff)
downloadlumina-59acffc7a3de0c2272a5cce2f19d2853afa0f2e6.tar.gz
lumina-59acffc7a3de0c2272a5cce2f19d2853afa0f2e6.tar.bz2
lumina-59acffc7a3de0c2272a5cce2f19d2853afa0f2e6.zip
Reverse the order of the window movement routines. The one which still might move the window above the top of the screen should be used first, with the fallback one which moves the window below the top of the screen second (had them flipped on accident).
-rw-r--r--lumina-desktop/LSession.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 753cbeb9..af73b0d4 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -608,18 +608,13 @@ void LSession::adjustWindowGeom(WId win, bool maximize){
if(DEBUG){
qDebug() << " - New Geom:" << geom << fgeom;
}
+ XCB->MoveResizeWindow(win, geom);
- // if(fgeom.y() <= desk.y()){
-
- //}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()) );
- //}
//For the random windows which are *still* off the top of the screen
fgeom = XCB->WindowGeometry(win, true); //re-fetch the current geometry (including frame)
if(fgeom.y() <= desk.y()){
- //This is a window off the top of the screen - use the window geom only (no frame included)
- XCB->MoveResizeWindow(win, geom);
+ //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