File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ export class ShellWindow {
127
127
}
128
128
129
129
actor_exists ( ) : boolean {
130
- return this . meta . get_compositor_private ( ) !== null ;
130
+ return this . meta . get_compositor_private ( ) !== null || this . destroying ;
131
131
}
132
132
133
133
private bind_window_events ( ) {
@@ -663,6 +663,13 @@ export class ShellWindow {
663
663
/// Activates a window, and moves the mouse point.
664
664
export function activate ( ext : Ext , move_mouse : boolean , win : Meta . Window ) {
665
665
try {
666
+ // Return if window was destroyed.
667
+ if ( ! win . get_compositor_private ( ) ) return
668
+
669
+ // Return if window is being destroyed.
670
+ if ( ext . get_window ( win ) ?. destroying ) return
671
+
672
+ // Return if window has override-redirect set.
666
673
if ( win . is_override_redirect ( ) ) return
667
674
668
675
const workspace = win . get_workspace ( )
You can’t perform that action at this time.
0 commit comments