This exposes colorScheme as a property which is then usable by kwin effects
Wanted by T9769.
Details
Details
- Reviewers
zzag graesslin - Group Reviewers
KWin - Commits
- R108:2d3431aedeea: Expose AbstractClient's colorScheme as a property
Not tested.
Hoping Michail has a script he wanted to use
Diff Detail
Diff Detail
- Repository
- R108 KWin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
@davidedmundson it works just fine!
I used the following kwin script to confirm it:
function processClient(client) { if (client && client.active) { callDBus("org.kde.lattedock", "/Latte", "org.kde.LatteDock", "activeWindowColorScheme", client.colorScheme); } } function setupConnection(client) { client.activeChanged.connect(client, function() { processClient(this); }); } workspace.clientAdded.connect(setupConnection); // connect all existing clients var clients = workspace.clientList(); for (var i=0; i<clients.length; i++) { setupConnection(clients[i]); }