Skip to content

Fix profile loading on Wayland - #839

Merged
Photon89 merged 1 commit into
masterfrom
fix-profiles
Aug 25, 2026
Merged

Fix profile loading on Wayland#839
Photon89 merged 1 commit into
masterfrom
fix-profiles

Conversation

@Photon89

Copy link
Copy Markdown
Member

$current_monitor_active is undefined on Wayland, so we need to check if it is defined before working with it.

@Photon89
Photon89 marked this pull request as ready for review August 25, 2026 19:13
@Photon89 Photon89 linked an issue Aug 25, 2026 that may be closed by this pull request
@DarthGandalf

Copy link
Copy Markdown
Member

Are the other usages of this var properly protected?

@Photon89

Copy link
Copy Markdown
Member Author

I just checked and I think, in other cases nothing can go wrong, because they are only used in X11 context where $current_monitor_active is defined.

@Photon89
Photon89 merged commit cb78390 into master Aug 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wayland: Loading profile throws error dialog

2 participants