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

            Bug ID: 381106
           Summary: Effects: windowGeometryShapeChanged not triggered when
                    window moved
           Product: kwin
           Version: 5.10.1
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: scripting
          Assignee: kwin-bugs-n...@kde.org
          Reporter: t...@r.je
  Target Milestone: ---

Using the javascript scripting engine, there seems to be no way to detect when
a window has been moved grammatically.

Using 

```
effects.windowGeometryShapeChanged.connect()
```

This is triggered as expected when the shape is changed, however, if the X/Y
co-ordinates change (e.g. by a kwin script) this method is not triggered.

There appears to be no method to trigger an animation from a kwin script to
move windows around. 

As a workaround, I've used the same effect and done this:

```
var geo = client.geometry;
geo.x += 100;

//Add 1 to the width to trigger the effect
geo.width = geo.width + 1;
client.geometry = geo;

//now put the window back to its original size
geo.width = geo.width = geo.width -1;
client.geometry = geo;
```

But this is a horrible hack! Either windowGeometryShapeChanged should be
triggered when the x/y co-ordinates change or windowGeometryChanged should be
implemented.

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

Reply via email to