kwin/autotests/integration/effects/scripts/effectsHandler.js
Vlad Zahorodnii 2ff0fc26a4 Merge EffectWindow::{windowMinimized,windowUnminimized}
The main motivation is to match the Window API.
2023-11-21 18:20:02 +00:00

18 lines
743 B
JavaScript

effects.windowAdded.connect(function(window) {
sendTestResponse("windowAdded - " + window.caption);
sendTestResponse("stackingOrder - " + effects.stackingOrder.length + " " + effects.stackingOrder[0].caption);
window.minimizedChanged.connect(() => {
if (window.minimized) {
sendTestResponse("windowMinimized - " + window.caption);
} else {
sendTestResponse("windowUnminimized - " + window.caption);
}
});
});
effects.windowClosed.connect(function(window) {
sendTestResponse("windowClosed - " + window.caption);
});
effects.desktopChanged.connect(function(old, current) {
sendTestResponse("desktopChanged - " + old.x11DesktopNumber + " " + current.x11DesktopNumber);
});