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", &(),