mirror of https://github.com/k0kubun/xremap
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
540 B
JavaScript
20 lines
540 B
JavaScript
function notifyActiveWindow(client) {
|
|
callDBus(
|
|
"com.k0kubun.Xremap",
|
|
"/com/k0kubun/Xremap",
|
|
"com.k0kubun.Xremap",
|
|
"NotifyActiveWindow",
|
|
"caption" in client ? client.caption : "",
|
|
"resourceClass" in client ? client.resourceClass : "",
|
|
"resourceName" in client ? client.resourceName : ""
|
|
);
|
|
}
|
|
|
|
if (workspace.windowList) {
|
|
// kde 6
|
|
workspace.windowActivated.connect(notifyActiveWindow);
|
|
} else {
|
|
// kde 5
|
|
workspace.clientActivated.connect(notifyActiveWindow);
|
|
}
|