This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KWin workspace.sendClientToScreen()

Tags: None
(comma "," separated)
inakimartinez
Registered Member
Posts
1
Karma
0

KWin workspace.sendClientToScreen()

Tue Jul 27, 2021 7:55 am
Hi,

I'm trying to create a script that switches the content my screens and for that I want to use the sendClientToScreen function.
The scripting console returns an error: TypeError: Result of expression 'workspace.sendClientToScreen' [undefined] is not a function.

Code: Select all
var clients = workspace.clientList();
for (var i=0; i<clients.length; i++) {       
        if(clients[i].screen == 1){
            workspace.sendClientToScreen(clients[i],0);
   }
}


Could you help me identifying why is failing?

Regards


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]