Skip to content

X11: Do not use a separate thread anymore - #357

Merged
prokopyl merged 30 commits into
nextfrom
x11-main-thread
Oct 25, 2026
Merged

prokopyl merged 30 commits into
nextfrom
x11-main-thread

Conversation

@prokopyl

@prokopyl prokopyl commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

This PR overhauls the X11 implementation by not requiring everything to be sent to a separate thread.

Instead, it now properly integrates with the host's event loop, like on Windows and macOS.

Breaking Changes

Integrating with the host event loop on Linux requires implementing two new Host interfaces: HostTimerSupport and HostFdSupport.

HostFdSupport is optional but preferred for better performance. If not available from the host, then HostTimerSupport is used as a fallback.

Not implementing either of these interface will result in a window that cannot receive any events and will forever appear "frozen".

@prokopyl prokopyl added this to the v0.5 - New Host API milestone Oct 13, 2026
@prokopyl
prokopyl marked this pull request as ready for review October 21, 2026 22:14
@prokopyl
prokopyl merged commit 99d15ea into next Oct 25, 2026
14 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.

1 participant