https://bugs.kde.org/show_bug.cgi?id=386021

--- Comment #2 from LinG <lingtj...@hotmail.com> ---
But there are two different scenarios in which the application behaves
differently. Allow me to provide two small examples which illustrate what I'm
experiencing to be weird

case 1.

- open application: kate
- execute this piece of code in Kwin

var clients = workspace.clientList(); 
for (var i=0; i<clients.length; i++) {
  if (clients[i].resourceClass.toString() === "kate") {kate = clients[i];};
}
kate.geometry = {x: 5, y: 100, width: 400, height: 800};

- succes, kate now takes on this geometry

case 2.

- close application: kate
- execute this piece of code

workspace.clientAdded.connect
(
  function(client)
  {
    client.geometry = {x: 100, y: 5, width: 800, height: 400};
    return 0;
  }
);

- open application: kate
- fail, kate takes on some random geometry

I don't understand why these two cases generate different results, but as you
said this may be kate related... In which case I report it in the kate section
I suppose? (Just checking to be sure that it is kate related and not kwin.)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to