Fix bug where window isn't focused

This commit is contained in:
Arne Keller 2024-06-04 19:17:45 +02:00
parent 1e64cf4a4d
commit ef832c797f
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ function toggleWindow() {
var prevMini = allClients[i].minimized; var prevMini = allClients[i].minimized;
allClients[i].minimized = !prevMini; allClients[i].minimized = !prevMini;
if (prevMini) { if (prevMini) {
workspace.activeClient = allClients[i]; workspace.activeWindow = allClients[i];
} }
break; // only toggle one window break; // only toggle one window
} }

View File

@ -11,7 +11,7 @@
} }
], ],
"Id": "togglewindow", "Id": "togglewindow",
"Version": "0.1.1", "Version": "0.1.2",
"License": "GPLv3", "License": "GPLv3",
"Website": "https://www.opencode.net/arnek01/kwin-toggle-window/" "Website": "https://www.opencode.net/arnek01/kwin-toggle-window/"
}, },