aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-08-14 10:56:18 -0400
committerKen Moore <moorekou@gmail.com>2015-08-14 10:56:18 -0400
commit19b052f82791d98ce52267248e5138e9cb66f335 (patch)
treea421aa1ead29d5d725f81bde3dea8ebdc6df38a5 /lumina-desktop
parentUpdate the Lumina-default theme a tiny bit (round off the borders for scroll ... (diff)
downloadlumina-19b052f82791d98ce52267248e5138e9cb66f335.tar.gz
lumina-19b052f82791d98ce52267248e5138e9cb66f335.tar.bz2
lumina-19b052f82791d98ce52267248e5138e9cb66f335.zip
Add special handling for lumina-screenshot when moving the initial window location: for some reason Fluxbox treats it differently than other windows.
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/LSession.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 69e75737..0425b971 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -578,7 +578,12 @@ void LSession::adjustWindowGeom(WId win, bool maximize){
}
//Note: Fluxbox treats this weird, the origin point needs to be the total (frame included),
// but the size needs to be the raw (no frame) value
- XCB->MoveResizeWindow(win, QRect(fgeom.topLeft(), geom.size()) );
+ if(XCB->WindowClass(win)=="Take Screenshot"){
+ //Not sure why: but Fluxbox treats lumina-screenshot differently
+ XCB->MoveResizeWindow(win, geom);
+ }else{
+ XCB->MoveResizeWindow(win, QRect(fgeom.topLeft(), geom.size()) );
+ }
}
}
bgstack15