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

Send an event, if Xwayland exits unexpectedly #1410

Open
LogicalOverflow opened this issue May 1, 2024 · 1 comment
Open

Send an event, if Xwayland exits unexpectedly #1410

LogicalOverflow opened this issue May 1, 2024 · 1 comment

Comments

@LogicalOverflow
Copy link
Contributor

Since #1350, the XWaylandEvent::Error event is only sent if an error occurs during Xwayland startup, instead of the XWaylandEvent::Exited event, which was also sent if it exits/crashes later on (for testing, I just killed the Xwayland process).

Looking through the code, I couldn't find a way to get notified, if Xwayland exits. Smithay does notice, that Xwayland exits, logging an error (ERROR smithay::utils::x11rb: Event thread exiting due to connection error The X11 server closed the connection)

My use-case is, that I would like to restart Xwayland, if it crashes. Re-adding the XWaylandEvent::Exited and sending it if the connection to the X11 server is closed would resolve this.

@Drakulix
Copy link
Member

Drakulix commented May 2, 2024

Re-adding the XWaylandEvent::Exited and sending it if the connection to the X11 server is closed would resolve this.

Yeah, that should be re-added.

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

No branches or pull requests

2 participants