Skip to content

Fix transparent X11 popup window creation - #50

Merged
levovix0 merged 6 commits into
levovix0:masterfrom
elcritch:fix-x11-popup-border-pixel
Sep 5, 2026
Merged

Fix transparent X11 popup window creation#50
levovix0 merged 6 commits into
levovix0:masterfrom
elcritch:fix-x11-popup-border-pixel

Conversation

@elcritch

@elcritch elcritch commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Transparent X11 popups could fail with BadMatch during XCreateWindow: the 32-bit child inherited the root’s border pixmap because border_pixel was omitted from the attribute mask. Set an explicit zero border pixel, include CWBorderPixel, and fail clearly when no 32-bit TrueColor visual is available.

The popup test now covers both opaque and transparent X11 software popups and is included in the legacy test task, so Linux CI runs it under its depth-24 Xvfb. This also exports the WinAPI base initializer used by the OpenGL and Vulkan window modules after the upstream incremental-compilation import cleanup.

Validation: atlas-run tests tpopup_api --no-shuffle; atlas-run tests --compile-only --no-shuffle (14/14).

Fixes the X11 menu-popup crash reported at https://forum.nim-lang.org/t/14136#85813.

@levovix0
levovix0 merged commit 5bc4ce6 into levovix0:master Sep 5, 2026
3 checks passed
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.

2 participants