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

Linux: Update XGetMainDisplay to avoid receiving Invalid MIT-MAGIC-COOKIE-1 key #27

Closed
s1hofmann opened this issue Sep 3, 2020 · 0 comments · Fixed by #28
Closed

Linux: Update XGetMainDisplay to avoid receiving Invalid MIT-MAGIC-COOKIE-1 key #27

s1hofmann opened this issue Sep 3, 2020 · 0 comments · Fixed by #28
Assignees
Labels
enhancement New feature or request

Comments

@s1hofmann
Copy link
Member

Short overview
Update XGetMainDisplay to avoid receiving Invalid MIT-MAGIC-COOKIE-1 key

Detailed description
The root cause of this problem is XGetMainDisplay trying to initially open display :0.0 which is not guaranteed to work.
A solution to this could be to keep the display name configurable but to default to $DISPLAY.

See https://tronche.com/gui/x/xlib/display/opening.html for reference.

@s1hofmann s1hofmann added the enhancement New feature or request label Sep 3, 2020
@s1hofmann s1hofmann self-assigned this Sep 9, 2020
s1hofmann added a commit that referenced this issue Jan 23, 2021
(#27) Modified XGetMainDisplay to default to $DISPLAY instead of ':0.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant