kwin/scripting
Vlad Zagorodniy 8d0554e45a [scripting] Allow effects to grab windows
Summary:
Some JavaScript based effects need to grab particular windows in order
to avoid conflicts with other effects.

Example usage:

```lang=js
effects.windowAdded.connect(function (window) {
    if (effect.grab(window, Effect.WindowAddedGrabRole)) {
        window.coolWindowTypeAnimation = animate({
            ...
        });
    }
});
```

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: romangg, graesslin, davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13153
2018-10-29 10:17:21 +02:00
..
CMakeLists.txt
dbuscall.cpp
dbuscall.h
documentation-effect-global.xml
documentation-global.xml
genericscriptedconfig.cpp
genericscriptedconfig.h
genericscriptedconfig.json
kwinscript.desktop
Messages.sh Fix message extraction 2018-05-20 08:14:50 +03:00
meta.cpp
meta.h
screenedgeitem.cpp
screenedgeitem.h
scriptedeffect.cpp [scripting] Allow effects to grab windows 2018-10-29 10:17:21 +02:00
scriptedeffect.h [scripting] Allow effects to grab windows 2018-10-29 10:17:21 +02:00
scripting.cpp Avoid crash with on scripted window teardown with threaded quick render loop 2018-09-13 10:19:12 +01:00
scripting.h Remove Qt module declarations in includes 2018-06-05 18:07:23 +01:00
scripting_logging.cpp
scripting_logging.h
scripting_model.cpp
scripting_model.h
scriptingutils.cpp
scriptingutils.h
timer.cpp
workspace_wrapper.cpp
workspace_wrapper.h Remove Qt module declarations in includes 2018-06-05 18:07:23 +01:00