Skip to content

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

Closed
@s1hofmann

Description

@s1hofmann

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions