File indexing completed on 2024-11-10 04:55:54

0001 effects.windowAdded.connect(function (window) {
0002     if (effect.grab(window, Effect.WindowAddedGrabRole)) {
0003         sendTestResponse('ok');
0004     } else {
0005         sendTestResponse('fail');
0006     }
0007 
0008     window.minimizedChanged.connect(() => {
0009         if (!window.minimized) {
0010             return;
0011         }
0012         if (effect.ungrab(window, Effect.WindowAddedGrabRole)) {
0013             sendTestResponse('ok');
0014         } else {
0015             sendTestResponse('fail');
0016         }
0017     });
0018 });