9e10394db1
This makes the api of EffectWindow more similar to the api of Window. It also makes more sense to keep such signals in EffectWindow. In the future, the effect window can be dropped in favor of the window.
15 lines
414 B
JavaScript
15 lines
414 B
JavaScript
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');
|
|
}
|
|
});
|
|
});
|