2ff0fc26a4
The main motivation is to match the Window API.
18 lines
478 B
JavaScript
18 lines
478 B
JavaScript
effects.windowAdded.connect(function (window) {
|
|
if (effect.grab(window, Effect.WindowAddedGrabRole)) {
|
|
sendTestResponse('ok');
|
|
} else {
|
|
sendTestResponse('fail');
|
|
}
|
|
|
|
window.minimizedChanged.connect(() => {
|
|
if (!window.minimized) {
|
|
return;
|
|
}
|
|
if (effect.ungrab(window, Effect.WindowAddedGrabRole)) {
|
|
sendTestResponse('ok');
|
|
} else {
|
|
sendTestResponse('fail');
|
|
}
|
|
});
|
|
});
|