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

            Bug ID: 426988
           Summary: Client unresponsive when geometry changes if both
                    signals are connected
           Product: kwin
           Version: unspecified
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: scripting
          Assignee: kwin-bugs-n...@kde.org
          Reporter: lingtj...@hotmail.com
  Target Milestone: ---

SUMMARY
When you set the same geometry in both the clientStepUserMovedResized and
clientFinishedUserMovedResized signals the client becomes unresponsive until
you can force a new geometry, such as by changing the border property (it feels
like a deadlock, because CPU usage does not go up, it's just no longer takes
input)

STEPS TO REPRODUCE
1. open a konsole application
2. run this small kwin script that illustrates the problem, this example
connects both client geometry change signals to a running konsole application
and forces a certain geometry (100,100, 200, 400)
```
var clients = workspace.clientList();
for (var i = 0; i < clients.length; i++) {
  var client = clients[i];
  if (client && client.resourceClass.toString() === 'konsole')
  {
    client.clientStepUserMovedResized.connect(function(c){
      c.geometry = {
        x: 100,
        y: 100,
        width: 200,
        height:400
      };
    });
    client.clientFinishUserMovedResized.connect(function(c)
    {
      c.geometry = {
        x: 100,
        y: 100,
        width: 200,
        height:400
      };
    });
  }
}
```
3. resize the konsole application by dragging one of the borders

OBSERVED RESULT
client becomes unresponsive to input

EXPECTED RESULT
client should be responsive to input

SOFTWARE/OS VERSIONS
latest archlinux packages (Plasma 5.19.5/Framework 5.74.0 at the time of
writing this report)

ADDITIONAL INFORMATION
If you comment one of the two signals then it works fine and the client doesn't
become unresponsive.
I remember in older versions of KWin, this would result in weird visual
artificats, this is now resolved but now the client becomes unresponsive.
Origin of report: https://github.com/lingtjien/Grid-Tiling-Kwin/issues/83

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

Reply via email to