diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-08 09:16:34 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-08 09:16:34 -0400 |
commit | f2e7539354da61ff2fd03ccfb58acae8b89aa097 (patch) | |
tree | d42fabdf0bd5a1ca0f3c5b30ffff63aa32739c76 /lumina-desktop/LSession.cpp | |
parent | Get rid of an extra empty grid space between desktop items. (diff) | |
download | lumina-f2e7539354da61ff2fd03ccfb58acae8b89aa097.tar.gz lumina-f2e7539354da61ff2fd03ccfb58acae8b89aa097.tar.bz2 lumina-f2e7539354da61ff2fd03ccfb58acae8b89aa097.zip |
Commit a couple fixes:
1) Make sure the calendar desktop plugin updates the date occasionally.
2) Add the framework for a custom-painted Toolbutton for the applauncher plugin. This will be used to ensure font outlines in the near future.
3) Another small adjustment for new window geometries - run the overall adjustment first - then re-check and see if the window is off the top of the screen before trying the fallback movement routine.
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r-- | lumina-desktop/LSession.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index e81cdebf..a1caf715 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -579,12 +579,17 @@ void LSession::adjustWindowGeom(WId win, bool maximize){ qDebug() << " - New Geom:" << geom << fgeom; } - 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{ + // 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); } } |