Skip to content

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

Merged
Cimbali merged 1 commit intoCimbali:masterfrom
cgevans:master
Mar 22, 2023
Merged

If Gdk does not provide a primary monitor, use 0.#284
Cimbali merged 1 commit intoCimbali:masterfrom
cgevans:master

Conversation

@cgevans
Copy link
Copy Markdown
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