From fee067fd8c696123ced28cf36fb3bcfe668581b0 Mon Sep 17 00:00:00 2001 From: Fmstrat Date: Mon, 6 Jan 2020 10:20:37 -0500 Subject: [PATCH] Fixed restoring of apps started maximized --- extension.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extension.js b/extension.js index f6d4085..1971d77 100644 --- a/extension.js +++ b/extension.js @@ -223,6 +223,10 @@ function sendMove(direction) { _log("monitorToLeft: " + monitorToLeft); _log("monitorToRight: " + monitorToRight); + // First, check if maximized and apply a wintile state if so + if (!app.wintile && app.maximized_horizontally && app.maximizedVertically) { + initApp(app, true); + } if (!app.wintile) { // We are not in a tile. Reset and find the most logical position _log('Not in tile.')