@@ -268,7 +268,7 @@ export class Space extends Array {
268
268
workspaceIndicator . connect ( 'button-press-event' , ( ) => Main . overview . toggle ( ) ) ;
269
269
this . workspaceIndicator = workspaceIndicator ;
270
270
let workspaceLabel = new St . Label ( ) ;
271
- workspaceIndicator . add_actor ( workspaceLabel ) ;
271
+ workspaceIndicator . add_child ( workspaceLabel ) ;
272
272
this . workspaceLabel = workspaceLabel ;
273
273
workspaceLabel . hide ( ) ;
274
274
@@ -281,15 +281,15 @@ export class Space extends Array {
281
281
clip . space = this ;
282
282
cloneContainer . space = this ;
283
283
284
- container . add_actor ( clip ) ;
285
- clip . add_actor ( actor ) ;
286
- actor . add_actor ( workspaceIndicator ) ;
284
+ container . add_child ( clip ) ;
285
+ clip . add_child ( actor ) ;
286
+ actor . add_child ( workspaceIndicator ) ;
287
287
actor . add_child ( this . focusModeIcon ) ;
288
- actor . add_actor ( cloneClip ) ;
289
- cloneClip . add_actor ( cloneContainer ) ;
288
+ actor . add_child ( cloneClip ) ;
289
+ cloneClip . add_child ( cloneContainer ) ;
290
290
291
291
this . border = new St . Widget ( { name : "border" } ) ;
292
- this . actor . add_actor ( this . border ) ;
292
+ this . actor . add_child ( this . border ) ;
293
293
this . border . hide ( ) ;
294
294
295
295
let monitor = Main . layoutManager . primaryMonitor ;
@@ -891,10 +891,10 @@ export class Space extends Array {
891
891
this . visible . splice ( this . visible . indexOf ( metaWindow ) , 1 ) ;
892
892
893
893
let clone = metaWindow . clone ;
894
- this . cloneContainer . remove_actor ( clone ) ;
894
+ this . cloneContainer . remove_child ( clone ) ;
895
895
// Don't destroy the selection highlight widget
896
896
if ( clone . first_child . name === 'selection' )
897
- clone . remove_actor ( clone . first_child ) ;
897
+ clone . remove_child ( clone . first_child ) ;
898
898
let actor = metaWindow . get_compositor_private ( ) ;
899
899
if ( actor )
900
900
actor . remove_clip ( ) ;
@@ -930,7 +930,7 @@ export class Space extends Array {
930
930
if ( i === - 1 )
931
931
return false ;
932
932
this . _floating . splice ( i , 1 ) ;
933
- this . actor . remove_actor ( metaWindow . clone ) ;
933
+ this . actor . remove_child ( metaWindow . clone ) ;
934
934
return true ;
935
935
}
936
936
@@ -1313,11 +1313,11 @@ export class Space extends Array {
1313
1313
let showTopBar = this . getShowTopBarSetting ( ) ;
1314
1314
1315
1315
// remove window position bar actors
1316
- this . actor . remove_actor ( this . windowPositionBarBackdrop ) ;
1317
- this . actor . remove_actor ( this . windowPositionBar ) ;
1316
+ this . actor . remove_child ( this . windowPositionBarBackdrop ) ;
1317
+ this . actor . remove_child ( this . windowPositionBar ) ;
1318
1318
if ( showTopBar ) {
1319
- this . actor . add_actor ( this . windowPositionBarBackdrop ) ;
1320
- this . actor . add_actor ( this . windowPositionBar ) ;
1319
+ this . actor . add_child ( this . windowPositionBarBackdrop ) ;
1320
+ this . actor . add_child ( this . windowPositionBar ) ;
1321
1321
}
1322
1322
1323
1323
this . updateShowTopBar ( ) ;
@@ -1630,8 +1630,13 @@ border-radius: ${borderWidth}px;
1630
1630
Navigator . finishNavigation ( ) ;
1631
1631
} ) ;
1632
1632
1633
- this . signals . connect (
1634
- this . background , 'scroll-event' ,
1633
+ // ensure this space is active if touched
1634
+ this . signals . connect ( this . background , 'touch-event' ,
1635
+ ( actor , event ) => {
1636
+ this . activateWithFocus ( this . selectedWindow , false , false ) ;
1637
+ } ) ;
1638
+
1639
+ this . signals . connect ( this . background , 'scroll-event' ,
1635
1640
( actor , event ) => {
1636
1641
if ( ! inGrab && ! Navigator . navigating )
1637
1642
return ;
@@ -3001,7 +3006,7 @@ export function registerWindow(metaWindow) {
3001
3006
let cloneActor = new Clutter . Clone ( { source : actor } ) ;
3002
3007
let clone = new Clutter . Actor ( ) ;
3003
3008
3004
- clone . add_actor ( cloneActor ) ;
3009
+ clone . add_child ( cloneActor ) ;
3005
3010
clone . targetX = 0 ;
3006
3011
clone . meta_window = metaWindow ;
3007
3012
@@ -4639,7 +4644,7 @@ export function takeWindow(metaWindow, space, { navigator }) {
4639
4644
4640
4645
navigator . _moving . push ( metaWindow ) ;
4641
4646
let parent = backgroundGroup ;
4642
- parent . add_actor ( metaWindow . clone ) ;
4647
+ parent . add_child ( metaWindow . clone ) ;
4643
4648
let lowest = navigator . _moving [ navigator . _moving . length - 2 ] ;
4644
4649
lowest && parent . set_child_below_sibling ( metaWindow . clone , lowest . clone ) ;
4645
4650
let point = space . cloneContainer . apply_relative_transform_to_point (
0 commit comments