the value of workspace.displayHeight is actually displayWidth although displaySize is correct. from output of print(JSON.stringify(workspace)); "displaySize":{"w":1920,"h":1200},"displayWidth":1920,"displayHeight":1920," (not sure if it is fixed in git or 4.9.1 but at least it is wrong for 4.9.0) Reproducible: Always
typo, thanks for noticing
Git commit 8bcb32f0ca833be152e907d3f27bfa6d1b7085b3 by Martin Gräßlin. Committed on 04/09/2012 at 06:26. Pushed by graesslin into branch 'KDE/4.9'. Return displayHeight for property displayHeight and not displayWidth Typo in the scripting bindings. FIXED-IN: 4.9.2 M +1 -1 kwin/scripting/workspace_wrapper.cpp http://commits.kde.org/kde-workspace/8bcb32f0ca833be152e907d3f27bfa6d1b7085b3