From baaad1c09afe6d6ec7fa5ae040239e6d13bd7b14 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 20 Feb 2014 15:31:14 +0000 Subject: [PATCH] Tiling2: Fixed geometry restore for maximized and fullscreen windows. --- src/modules/tiling/e_mod_tiling.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index 19777f5..236fca7 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -292,12 +292,15 @@ _restore_client(E_Client *ec) if (!extra) return; - _e_client_move_resize(ec, extra->orig.geom.x, extra->orig.geom.y, - extra->orig.geom.w, extra->orig.geom.h); - if (extra->orig.maximized != ec->maximized) + if (!ec->maximized && !ec->fullscreen) { - e_client_maximize(ec, extra->orig.maximized); - ec->maximized = extra->orig.maximized; + _e_client_move_resize(ec, extra->orig.geom.x, extra->orig.geom.y, + extra->orig.geom.w, extra->orig.geom.h); + if (extra->orig.maximized != ec->maximized) + { + e_client_maximize(ec, extra->orig.maximized); + ec->maximized = extra->orig.maximized; + } } } -- 2.7.4