kwin/autotests/integration/effects/scripts/ungrabTest.js

16 lines
414 B
JavaScript
Raw Normal View History

effects.windowAdded.connect(function (window) {
if (effect.grab(window, Effect.WindowAddedGrabRole)) {
sendTestResponse('ok');
} else {
sendTestResponse('fail');
}
window.windowMinimized.connect(() => {
if (effect.ungrab(window, Effect.WindowAddedGrabRole)) {
sendTestResponse('ok');
} else {
sendTestResponse('fail');
}
});
});