@@ -152,7 +152,7 @@ export class Ext extends Ecs.System<ExtEvent> {
152
152
injections : Array < Injection > = new Array ( ) ;
153
153
154
154
/** The window that was focused before the last window */
155
- private prev_focused : [ null | Entity , null | Entity ] = [ null , null ] ;
155
+ prev_focused : [ null | Entity , null | Entity ] = [ null , null ] ;
156
156
157
157
tween_signals : Map < string , [ SignalID , any ] > = new Map ( ) ;
158
158
@@ -788,11 +788,8 @@ export class Ext extends Ecs.System<ExtEvent> {
788
788
this . exception_add ( win )
789
789
}
790
790
791
- // Track history of focused windows, but do not permit duplicates.
792
- if ( this . prev_focused [ 1 ] !== win . entity ) {
793
- this . prev_focused [ 0 ] = this . prev_focused [ 1 ] ;
794
- this . prev_focused [ 1 ] = win . entity ;
795
- }
791
+ this . prev_focused [ 0 ] = this . prev_focused [ 1 ] ;
792
+ this . prev_focused [ 1 ] = win . entity ;
796
793
797
794
// Update the active tab in the stack.
798
795
if ( null !== this . auto_tiler && null !== win . stack ) {
@@ -1066,17 +1063,6 @@ export class Ext extends Ecs.System<ExtEvent> {
1066
1063
}
1067
1064
}
1068
1065
1069
- previously_focused ( active : Window . ShellWindow ) : null | Ecs . Entity {
1070
- for ( const id of [ 1 , 0 ] ) {
1071
- const prev = this . prev_focused [ id ]
1072
- if ( prev && ! Ecs . entity_eq ( active . entity , prev ) ) {
1073
- return prev ;
1074
- }
1075
- }
1076
-
1077
- return null
1078
- }
1079
-
1080
1066
movement_is_valid ( win : Window . ShellWindow , movement : movement . Movement ) {
1081
1067
if ( ( movement & Movement . SHRINK ) !== 0 ) {
1082
1068
if ( ( movement & Movement . DOWN ) !== 0 ) {
@@ -2048,7 +2034,7 @@ export class Ext extends Ecs.System<ExtEvent> {
2048
2034
let actor = window . meta . get_compositor_private ( ) ;
2049
2035
if ( actor ) {
2050
2036
if ( ! window . meta . minimized ) {
2051
- tiler . auto_tile ( this , window , true ) ;
2037
+ tiler . auto_tile ( this , window , false ) ;
2052
2038
}
2053
2039
}
2054
2040
}
0 commit comments