From 19b052f82791d98ce52267248e5138e9cb66f335 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 14 Aug 2015 10:56:18 -0400 Subject: Add special handling for lumina-screenshot when moving the initial window location: for some reason Fluxbox treats it differently than other windows. --- lumina-desktop/LSession.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lumina-desktop') 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()) ); + } } } -- cgit