Skip to content

Commit

Permalink
umu_run: handle None type when there are no gamescope displays
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Aug 11, 2024
1 parent 1f6d43d commit 77296dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 77296dc

Please sign in to comment.