From ef832c797f7fb316d5c9254e3da53029e2c8a1ad Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Tue, 4 Jun 2024 19:17:45 +0200 Subject: [PATCH] Fix bug where window isn't focused --- contents/code/main.js | 2 +- metadata.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contents/code/main.js b/contents/code/main.js index a2964b9..6428e55 100644 --- a/contents/code/main.js +++ b/contents/code/main.js @@ -18,7 +18,7 @@ function toggleWindow() { var prevMini = allClients[i].minimized; allClients[i].minimized = !prevMini; if (prevMini) { - workspace.activeClient = allClients[i]; + workspace.activeWindow = allClients[i]; } break; // only toggle one window } diff --git a/metadata.json b/metadata.json index e6a6b76..fb360fd 100644 --- a/metadata.json +++ b/metadata.json @@ -11,7 +11,7 @@ } ], "Id": "togglewindow", - "Version": "0.1.1", + "Version": "0.1.2", "License": "GPLv3", "Website": "https://www.opencode.net/arnek01/kwin-toggle-window/" },