🪲 Fix error message

This commit is contained in:
Simon Schneegans
2022-01-21 20:54:53 +01:00
parent c7001de666
commit e2153bece1
+12 -4
View File
@@ -98,10 +98,18 @@ class Extension {
// When the user clicks the X in the overview, the window is not deleted // When the user clicks the X in the overview, the window is not deleted
// immediately. However, as soon as the window is really deleted, we need to // immediately. However, as soon as the window is really deleted, we need to
// adjust the transition of its clone. // adjust the transition of its clone.
this.metaWindow.connect('unmanaged', () => { const connectionID = this.metaWindow.connect('unmanaged', () => {
const transitionConfig = extensionThis._effect.getCloseTransition( if (this.window_container) {
this.window_container, extensionThis._settings); const transitionConfig = extensionThis._effect.getCloseTransition(
extensionThis._tweakTransitions(this.window_container, transitionConfig); this.window_container, extensionThis._settings);
extensionThis._tweakTransitions(this.window_container, transitionConfig);
}
});
// Make sure to not call the callback above if the Meta.Window was not unmanaged
// before leaving the overview.
this.connect('destroy', () => {
this.metaWindow.disconnect(connectionID);
}); });
// Call the original method. // Call the original method.