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

XCB surface: Don't crash on wayland proper #221

Closed

Conversation

HildarTheDorf
Copy link
Contributor

When running the X11 caps viewer on wayland, QX11Info::connection is null.

This prevents a segfault, although no useful surface information is returned.

When running the X11 caps viewer on wayland, QX11Info::connection is null
@HildarTheDorf
Copy link
Contributor Author

HildarTheDorf commented Nov 21, 2024

Code should probabally not use the Qt connection at all for querying X information, as Qt could be using XCB, Wayland, or neither. I intend to make a longer PR fixing that but for now this should be a harmless stopgap.

@HildarTheDorf
Copy link
Contributor Author

Resolved as part #225

@HildarTheDorf HildarTheDorf deleted the X11OnWaylandCrash branch November 26, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants