From f2e7539354da61ff2fd03ccfb58acae8b89aa097 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 8 Oct 2015 09:16:34 -0400 Subject: 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. --- lumina-desktop/LSession.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'lumina-desktop/LSession.cpp') 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); } } -- cgit