aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-01-05 15:22:35 -0500
committerKen Moore <ken@pcbsd.org>2015-01-05 15:22:35 -0500
commit02f6eeef005f2ebd59edc7e18a12099c2e179e87 (patch)
treeaee5faa8492e39d40ab9f86a12e12487d4acb4c0 /lumina-desktop
parentUpdate the Lumina-default theme template to work properly with Qt5. (diff)
downloadlumina-02f6eeef005f2ebd59edc7e18a12099c2e179e87.tar.gz
lumina-02f6eeef005f2ebd59edc7e18a12099c2e179e87.tar.bz2
lumina-02f6eeef005f2ebd59edc7e18a12099c2e179e87.zip
Put another couple quick fixes in:
1) Do not adjust the width of new windows (even if they go off the right side of the screen, they still have some part of them on the main screen) 2) Add better crash handling to lumina-open (put the standard error text or standard output text of the application in the "details" for the message box).
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/LSession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 034aad6e..2cc1aea4 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -304,8 +304,8 @@ void LSession::adjustWindowGeom(WId win, bool maximize){
//Adjust origin point for left/top margins
if(geom.y() < desk.y()){ geom.moveTop(desk.y()); } //move down to the edge (top panel)
if(geom.x() < desk.x()){ geom.moveLeft(desk.x()); } //move right to the edge (left panel)
- //Adjust size for right/bottom margins (within reason, since window titles are on top normally)
- if(geom.right() > desk.right() && (geom.width() > 100)){ geom.setRight(desk.right()); }
+ //Adjust size for bottom margins (within reason, since window titles are on top normally)
+ // if(geom.right() > desk.right() && (geom.width() > 100)){ geom.setRight(desk.right()); }
if(geom.bottom() > desk.bottom() && geom.height() > 100){ geom.setBottom(desk.bottom()); }
//Now move/resize the window
if(DEBUG){ qDebug() << "New Geom:" << geom.x() << geom.y() << geom.width() << geom.height(); }
bgstack15