MockWorkspace.removeWindow: Randomize the order of signals
This commit is contained in:
@@ -54,12 +54,14 @@ class MockWorkspace {
|
||||
public removeWindow(window: MockKwinClient) {
|
||||
this.activeWindow = null;
|
||||
runReorder(
|
||||
() => {
|
||||
if (this.activeWindow === null) {
|
||||
activateRandomWindowOnDesktop(this.currentDesktop);
|
||||
};
|
||||
},
|
||||
() => this.windows.splice(this.windows.indexOf(window), 1),
|
||||
() => this.windowRemoved.fire(window),
|
||||
);
|
||||
if (this.activeWindow === null) {
|
||||
activateRandomWindowOnDesktop(this.currentDesktop);
|
||||
};
|
||||
}
|
||||
|
||||
public moveWindow(window: MockKwinClient, ...deltas: QmlPoint[]) {
|
||||
|
||||
Reference in New Issue
Block a user