2018-10-27 20:13:53 +00:00
|
|
|
effects.windowAdded.connect(function (window) {
|
|
|
|
if (effect.grab(window, Effect.WindowAddedGrabRole)) {
|
|
|
|
sendTestResponse('ok');
|
|
|
|
} else {
|
|
|
|
sendTestResponse('fail');
|
|
|
|
}
|
|
|
|
|
2023-11-21 11:39:23 +00:00
|
|
|
window.minimizedChanged.connect(() => {
|
|
|
|
if (!window.minimized) {
|
|
|
|
return;
|
|
|
|
}
|
2023-09-23 08:13:23 +00:00
|
|
|
if (effect.ungrab(window, Effect.WindowAddedGrabRole)) {
|
|
|
|
sendTestResponse('ok');
|
|
|
|
} else {
|
|
|
|
sendTestResponse('fail');
|
|
|
|
}
|
|
|
|
});
|
2018-10-27 20:13:53 +00:00
|
|
|
});
|