aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-11-20 14:16:46 -0500
committerKen Moore <moorekou@gmail.com>2015-11-20 14:16:46 -0500
commit90a5772644ca553d553fe3815d2c98c51cf0079c (patch)
treebb2bd9811e4301ef4683caf81e24697ee9635d38 /lumina-desktop/LSession.cpp
parentQuick checkpoint for the window manager: NOT STABLE - crashes on window close... (diff)
downloadlumina-90a5772644ca553d553fe3815d2c98c51cf0079c.tar.gz
lumina-90a5772644ca553d553fe3815d2c98c51cf0079c.tar.bz2
lumina-90a5772644ca553d553fe3815d2c98c51cf0079c.zip
Fix up the WM a bit more - now it can open/close windows without issues (still very rough - does not do things like fine-grained stacking, minimization, and such yet).
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 7f182583..9fd30b7d 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -162,7 +162,8 @@ void LSession::setupSession(){
connect(this, SIGNAL(aboutToQuit()), this, SLOT(SessionEnding()) );
if(DEBUG){ qDebug() << " - Init Finished:" << timer->elapsed(); delete timer;}
QApplication::processEvents();
- QTimer::singleShot(500, this, SLOT(launchStartupApps()) );
+ launchStartupApps();
+ //QTimer::singleShot(500, this, SLOT(launchStartupApps()) );
QApplication::processEvents();
splash.close();
}
@@ -576,7 +577,7 @@ void LSession::adjustWindowGeom(WId win, bool maximize){
break;
}
}
- if(desk.isNull()){ return; } //Unable to deteremine screen
+ if(desk.isNull()){ return; } //Unable to determine screen
//Adjust the window location if necessary
if(maximize){
if(DEBUG){ qDebug() << " - Maximizing New Window:" << desk.width() << desk.height(); }
@@ -599,7 +600,7 @@ void LSession::adjustWindowGeom(WId win, bool maximize){
//just move the window - there is room for it above
geom.setBottom(desk.bottom()-frame[1]);
fgeom.setBottom(desk.bottom());
- }else if(geom.height() < diff){ //window bigger than the difference
+ }else if(geom.height() > diff){ //window bigger than the difference
//Need to resize the window - keeping the origin point the same
geom.setHeight( geom.height()-diff-1 ); //shrink it by the difference (need an extra pixel somewhere)
fgeom.setHeight( fgeom.height()-diff );
bgstack15