From 77296dcb2fd5b5e9ee6fd567e8444a3a473a4c47 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Sun, 11 Aug 2024 15:27:19 -0700 Subject: [PATCH] umu_run: handle None type when there are no gamescope displays --- umu/umu_run.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/umu/umu_run.py b/umu/umu_run.py index 4378e7cd0..575fba950 100755 --- a/umu/umu_run.py +++ b/umu/umu_run.py @@ -506,8 +506,13 @@ def set_steam_game_property( log.exception(e) -def get_gamescope_baselayer_order(d: display.Display) -> list[int] | None: +def get_gamescope_baselayer_order( + d: display.Display | None, +) -> list[int] | None: """Get the gamescope base layer seq on the primary root window.""" + if not d: + return None + try: root_primary: Window = d.screen().root