Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If Gdk does not provide a primary monitor, use 0. #284

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

cgevans
Copy link
Contributor

@cgevans cgevans commented Mar 22, 2023

Gdk.Display.get_primary_monitor can return None in some circumstances. In this case, rather than failing, this code assumes that the first monitor is the primary one.

Closes #283

Gdk.Display.get_primary_monitor can return None in some circumstances.
In this case, rather than failing, this code assumes that the first
monitor is the primary one.
@Cimbali Cimbali merged commit f25f0ed into Cimbali:master Mar 22, 2023
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.

Pympress crashes on start on Fedora 38 beta.
2 participants