From f82a6a545c2bfa974ba274cb3a041980d845d50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 17 Jan 2015 23:55:38 +0100 Subject: [PATCH] preserve actual geom_restore on QuickTileMaximize BUG: 342981 REVIEW: 122118 The geometry of the window when entering QTM is a technical detail (caused by the maximizing action of moving the window to the upper edge) and thus does not qualify as geometry the window should be restored to (using a deoc button, shortcut etc.) --- geometry.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index 3bf8da29aa..9ac61a4c6a 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -3134,6 +3134,7 @@ void Client::setQuickTileMode(QuickTileMode mode, bool keyboard) if (maximizeMode() == MaximizeFull) { setMaximize(false, false); } else { + QRect prev_geom_restore = geom_restore; // setMaximize() would set moveResizeGeom as geom_restore setMaximize(true, true); QRect clientArea = workspace()->clientArea(MaximizeArea, this); if (geometry().top() != clientArea.top()) { @@ -3142,6 +3143,7 @@ void Client::setQuickTileMode(QuickTileMode mode, bool keyboard) setGeometry(r); } quick_tile_mode = QuickTileMaximize; + geom_restore = prev_geom_restore; } emit quickTileModeChanged(); return;