https://bugs.kde.org/show_bug.cgi?id=437507
Bug ID: 437507 Summary: workspace.clientArea() does not work anymore with a client object as argument Product: kwin Version: unspecified Platform: Neon Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: scripting Assignee: kwin-bugs-n...@kde.org Reporter: bugs.kde....@derflupp.e4ward.com Target Milestone: --- Within a KWin script, the method workspace.clientArea() with the overloaded type clientArea(ClientAreaOption,const KWin::AbstractClient*) cannot be called anymore. Version information: KWin 5.22.80 on KDE Neon unstable (neon-unstable-20210516-0329.iso). Consider the following example. The respective error messages mentioned in the comments are printed to the console. (With KWin 5.21.5 the script works without errors.) e = KWin.MaximizeArea; c = workspace.activeClient; // succeeding: r = workspace.clientArea(e, 0, 0); print("rect:", e, r, r.x, r.y, r.width, r.height); // failing with: // kwin_scripting: …/interactiveconsoleautosave.js:17: error: Unable to determine callable overload. Candidates are: // clientArea(ClientAreaOption,const KWin::AbstractClient*) // clientArea(ClientAreaOption,QPoint,int) // clientArea(ClientAreaOption,int,int) r = workspace.clientArea(e, c); print("rect:", e, r, r.x, r.y, r.width, r.height); // failing with: // kwin_scripting: …/interactiveconsoleautosave.js:24: error: Property 'clientArea(ClientAreaOption,const KWin::AbstractClient*)' of object KWin::QtScriptWorkspaceWrapper(0x55fa011865f0) is not a function r = workspace['clientArea(ClientAreaOption,const KWin::AbstractClient*)'](e, c); print("rect:", e, r, r.x, r.y, r.width, r.height); -- You are receiving this mail because: You are watching all bug changes.