Currently, when printed, a client is showed as 'KWin::Client(name="")', which is rather useless. Use the caption instead. Reproducible: Always Steps to Reproduce: 1. print(workspace.activeClient) Actual Results: prints: 'KWin::Client(name="")' Expected Results: 'KWin::Client(caption="Konsole ...")'
I'm not sure where the output comes from, but I think it's standard QObject functionality. It might make sense to have the same output as if we pass a KWin::Client to kdebug.
Git commit b2f56c473067f4012aa1f94334543fb775ea9602 by Martin Gräßlin. Committed on 14/02/2013 at 15:19. Pushed by graesslin into branch 'master'. Print useful information for a Client in scripting Reusing the debug information already specified for QDebug. FIXED-IN: 4.11 REVIEW: 108959 M +1 -2 kwin/client.cpp M +10 -0 kwin/client.h M +8 -2 kwin/scripting/scripting.cpp http://commits.kde.org/kde-workspace/b2f56c473067f4012aa1f94334543fb775ea9602