D15913: Expose AbstractClient's colorScheme as a property

Michail Vourlakos <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
mvourlakos added a comment.


  @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]);
    }

REPOSITORY
  R108 KWin

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D15913

To: davidedmundson, #kwin, zzag, graesslin
Cc: mvourlakos, zzag, kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.