[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 --- Comment #4 from Sigma <lord_si...@live.de> --- It does not seem so (I added workspace to the examples from the attachment), neither in JS nor QML. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 --- Comment #2 from Sigma <lord_si...@live.de> --- I am using Qt 5.10.1. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 Sigma <lord_si...@live.de> changed: What|Removed |Added CC||lord_si...@live.de -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 Sigma <lord_si...@live.de> changed: What|Removed |Added Attachment #112877|Minimal test script for QML |Minimal examples for QML description|and Javascript |and Javascript -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 394699] New: Enums from KWin are missing in QML scripts
https://bugs.kde.org/show_bug.cgi?id=394699 Bug ID: 394699 Summary: Enums from KWin are missing in QML scripts Product: kwin Version: 5.12.5 Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: scripting Assignee: kwin-bugs-n...@kde.org Reporter: lord_si...@live.de Target Milestone: --- Created attachment 112877 --> https://bugs.kde.org/attachment.cgi?id=112877=edit Minimal test script for QML and Javascript The following command prints different things when called from a QML script (X-Plasma-API=declarativescript) or from plain Javascript (X-Plasma-API=javascript): print(Object.keys(KWin)); In QML: [objectName,objectNameChanged,readConfig,readConfig,registerWindow,registerShortcut] In Javascript: "PlacementArea,MovementArea,MaximizeArea,MaximizeFullArea,FullScreenArea,WorkArea,FullArea,ScreenArea,ElectricTop,ElectricTopRight,ElectricRight,ElectricBottomRight,ElectricBottom,ElectricBottomLeft,ElectricLeft,ElectricTopLeft,ELECTRIC_COUNT,ElectricNone" Because of this there is no way to use these enums in QML. I added my testcases as an attachment. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 392840] Can't seem to use print() multiple times
https://bugs.kde.org/show_bug.cgi?id=392840 --- Comment #9 from Sigma <lord_si...@live.de> --- KDebugSettings is an application to configure logging for KDE applications ( https://community.kde.org/KDevelop/Debugging is the only documentation I was able to find). Increase the level for "KWin Scripting" (I am using "all") to make KWin log the print()s. I am viewing the log output by restarting KWin from Konsole using "kwin_x11 --replace". -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 392840] Can't seem to use print() multiple times
https://bugs.kde.org/show_bug.cgi?id=392840 --- Comment #7 from Sigma <lord_si...@live.de> --- print("hi") print("hihi") prints "Hi" in the scripting console and "hi\nhihihi" to KWin's stdout if you enable debug output in KDebugSettings. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 392840] Can't seem to use print() multiple times
https://bugs.kde.org/show_bug.cgi?id=392840 --- Comment #6 from Sigma <lord_si...@live.de> --- I noticed that workspace was missing after my comment and went to test a few things. The missing print outputs also seem to be a scripting console bug because all messages are printed in KWin's console output. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 392840] Can't seem to use print() multiple times
https://bugs.kde.org/show_bug.cgi?id=392840 --- Comment #3 from Sigma <lord_si...@live.de> --- Interesting, I can reproduce this on my KDE 5.12.5, but this happens only if I switch between the KWin and Plasma "modes". It works if I leave it at KWin (the default). -- You are receiving this mail because: You are watching all bug changes.