@@ -343,27 +343,9 @@ function start() {
343343 keybindingManager = new Keybindings . KeybindingManager ( ) ;
344344 deskletContainer = new DeskletManager . DeskletContainer ( ) ;
345345
346- // Set up stage hierarchy to group all UI actors under one container.
347- uiGroup = new Cinnamon . GenericContainer ( { name : 'uiGroup' } ) ;
348- // see https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/73d8c82640f6125cfbf80
349- this . uiGroup . set_flags ( Clutter . ActorFlags . NO_LAYOUT ) ;
350-
351- uiGroup . connect ( 'allocate' ,
352- function ( actor , box , flags ) {
353- let children = uiGroup . get_children ( ) ;
354- for ( let i = 0 ; i < children . length ; i ++ )
355- children [ i ] . allocate_preferred_size ( flags ) ;
356- } ) ;
357- uiGroup . connect ( 'get-preferred-width' ,
358- function ( actor , forHeight , alloc ) {
359- let width = global . stage . width ;
360- [ alloc . min_size , alloc . natural_size ] = [ width , width ] ;
361- } ) ;
362- uiGroup . connect ( 'get-preferred-height' ,
363- function ( actor , forWidth , alloc ) {
364- let height = global . stage . height ;
365- [ alloc . min_size , alloc . natural_size ] = [ height , height ] ;
366- } ) ;
346+ uiGroup = new Layout . UiActor ( { name : 'uiGroup' } ) ;
347+ uiGroup . set_flags ( Clutter . ActorFlags . NO_LAYOUT ) ;
348+
367349 global . background_actor . hide ( ) ;
368350 global . reparentActor ( global . window_group , uiGroup ) ;
369351 global . reparentActor ( global . overlay_group , uiGroup ) ;
0 commit comments