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

Stop using get_primary_monitor() #102

Merged
merged 1 commit into from
Jan 13, 2023
Merged

Stop using get_primary_monitor() #102

merged 1 commit into from
Jan 13, 2023

Conversation

dubhater
Copy link
Contributor

It doesn't work in Wayland and it is apparently deprecated.

Use get_monitor(0) instead.

Fixes the following error:

Traceback (most recent call last):
File "/tmp/./cropgtk.py", line 223, in
wa = display.get_primary_monitor().get_workarea()
AttributeError: 'NoneType' object has no attribute 'get_workarea'

Fixes #93.

It doesn't work in Wayland and it is apparently deprecated.

Use get_monitor(0) instead.

Fixes the following error:

Traceback (most recent call last):
  File "/tmp/./cropgtk.py", line 223, in <module>
    wa = display.get_primary_monitor().get_workarea()
AttributeError: 'NoneType' object has no attribute 'get_workarea'

Fixes jepler#93.
@jepler jepler merged commit ef48fc2 into jepler:main Jan 13, 2023
@jepler
Copy link
Owner

jepler commented Jan 13, 2023

Thanks!

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.

get_primary_monitor() doesn't work with Wayland and is deprecated
2 participants