Registered Member
|
I'm trying to use clientMaximizedStateChanged in a KWin script. Documentation of this is by the way pretty bad .
Now, we're having two exported signals: clientMaximizedStateChanged(KWin::Client *, KDecorationDefines::MaximizeMode) clientMaximizedStateChanged(KWin::Client *c, bool h, bool v) (for the documentation being bad, what the heck are "h" and "v" variables?) The question is: How to connect to a specific signal?
will give me:
This looks like easy enough, but i failed hard trying to get javascript actually using this function (will give me parse errors).
gives
How to (in javascript) tell the guy that I want to use
In C++ I could simply cast it, but in JavaScript? It's actually for this guy I'm trying to help: https://forum.manjaro.org/t/calling-kde ... ds/12772/9 Another issue is how to play a sound out of there... is there a simple way to play a sound out of kwin scripts (as a qml container I can create and access with SoundEffect or Audio or similar QML type. There are not a lot of examples for KWin scripting around . |
Registered users: Bing [Bot], Evergrowing, Google [Bot]