File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,9 @@ export class ShellWindow {
443
443
break ;
444
444
}
445
445
446
- GLib . timeout_add ( GLib . PRIORITY_LOW , restackSpeed , ( ) => {
446
+ const action = ( ) => {
447
+ if ( ! this . actor_exists ) return
448
+
447
449
let border = this . border ;
448
450
let actor = this . meta . get_compositor_private ( ) ;
449
451
let win_group = global . window_group ;
@@ -481,7 +483,9 @@ export class ShellWindow {
481
483
}
482
484
483
485
return false ; // make sure it runs once
484
- } ) ;
486
+ }
487
+
488
+ GLib . timeout_add ( GLib . PRIORITY_LOW , restackSpeed , action )
485
489
}
486
490
487
491
get always_top_windows ( ) : Clutter . Actor [ ] {
@@ -546,10 +550,8 @@ export class ShellWindow {
546
550
if ( dimensions ) {
547
551
[ x , y , width , height ] = dimensions
548
552
549
- const screen = global
550
- . workspace_manager
551
- . get_active_workspace ( )
552
- . get_work_area_for_monitor ( global . display . get_current_monitor ( ) )
553
+ const screen = this . meta . get_workspace ( )
554
+ . get_work_area_for_monitor ( this . meta . get_monitor ( ) )
553
555
554
556
if ( screen ) {
555
557
x = Math . max ( x , screen . x )
You can’t perform that action at this time.
0 commit comments