Linux: Update XGetMainDisplay to avoid receiving `Invalid MIT-MAGIC-COOKIE-1 key`
Closed this issue · 0 comments
s1hofmann commented
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.