From 7f9f60348cf38a09565e6e8e924239efa0a11d13 Mon Sep 17 00:00:00 2001 From: Moody Liu Date: Sat, 6 Jan 2024 01:36:32 +0000 Subject: [PATCH] Support kwin6 updated APIs --- watchers/src/watchers/kwin_window.js | 2 +- watchers/src/watchers/kwin_window.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/watchers/src/watchers/kwin_window.js b/watchers/src/watchers/kwin_window.js index 7db21a3..54f9307 100644 --- a/watchers/src/watchers/kwin_window.js +++ b/watchers/src/watchers/kwin_window.js @@ -12,7 +12,7 @@ function send(client) { ); } -workspace.clientActivated.connect(function(client){ +workspace.windowActivated.connect(function(client){ if (client === null) { return; } diff --git a/watchers/src/watchers/kwin_window.rs b/watchers/src/watchers/kwin_window.rs index cfef167..5b228ae 100644 --- a/watchers/src/watchers/kwin_window.rs +++ b/watchers/src/watchers/kwin_window.rs @@ -95,7 +95,7 @@ impl KWinScript { self.dbus_connection .call_method( Some("org.kde.KWin"), - format!("/{script_number}"), + format!("/Scripting/Script{script_number}"), Some("org.kde.kwin.Script"), "run", &(),