@@ -34,7 +34,25 @@ def __init__(self, system_service: SystemService, **kwargs):
3434 self .config = SetupConfig ()
3535 self .completed_steps = set () # Track completed steps
3636 self .set_title (_ ("BigLinux Setup" ))
37- self .fullscreen ()
37+
38+ # --- Fullscreen for Xorg without compositor ---
39+ # This approach makes the window undecorated and sized to the monitor.
40+ # It's more reliable in environments without a full-featured window manager.
41+ self .set_decorated (False )
42+ display = Gdk .Display .get_default ()
43+ if display :
44+ monitors = display .get_monitors ()
45+ if monitors .get_n_items () > 0 :
46+ # Use the first monitor as the target
47+ monitor = monitors .get_item (0 )
48+ geometry = monitor .get_geometry ()
49+ self .set_default_size (geometry .width , geometry .height )
50+ else :
51+ # Fallback to the standard method if we can't get monitor info
52+ self .fullscreen ()
53+ else :
54+ self .fullscreen ()
55+
3856
3957 style_manager = Adw .StyleManager .get_default ()
4058 style_manager .set_color_scheme (Adw .ColorScheme .FORCE_DARK )
@@ -164,12 +182,6 @@ def _add_step_button(self, box, step_info):
164182 button .connect ("clicked" , self ._on_step_button_clicked , step_info ["name" ])
165183 button .add_css_class ("flat" )
166184
167- try :
168- cursor = Gdk .Cursor .new_from_name ("pointer" , None )
169- button .set_cursor (cursor )
170- except Exception :
171- pass
172-
173185 step_info ["button" ] = button
174186 if step_info ["name" ] == "language" :
175187 step_info ["img" ] = img
0 commit comments