tests: MockKwinClient: only fire frameGeometryChanged and fullScreenChanged signals on actual changes
This commit is contained in:
@@ -98,7 +98,9 @@ class MockKwinClient {
|
||||
runReorder(
|
||||
() => {
|
||||
this._fullScreen = fullScreen;
|
||||
this.fullScreenChanged.fire();
|
||||
if (fullScreen !== oldFullScreen) {
|
||||
this.fullScreenChanged.fire();
|
||||
}
|
||||
},
|
||||
() => {
|
||||
if (oldFullScreen && !fullScreen) {
|
||||
@@ -151,7 +153,9 @@ class MockKwinClient {
|
||||
if (this.windowed) {
|
||||
this.windowedFrameGeometry = this._frameGeometry.clone();
|
||||
}
|
||||
this.frameGeometryChanged.fire(oldFrameGeometry);
|
||||
if (!rectEquals(frameGeometry, oldFrameGeometry)) {
|
||||
this.frameGeometryChanged.fire(oldFrameGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
public get minimized() {
|
||||
|
||||
Reference in New Issue
Block a user