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

Don't wrap IdleInhibitorV1's destroy event data #79

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

m-col
Copy link
Collaborator

@m-col m-col commented Feb 22, 2022

According to wlroots' emitter for this signal, it does return the idle
inhibitor's struct wlr_surface*. However, in practice the pointed-to
data seems to be invalid, causing a crash (e.g.
qtile/qtile#3361).

The data does not seem to be used by any compositor so until it is
needed we can probably get away without the wrapper, resolving the
problem.

According to wlroots' emitter for this signal, it *does* return the idle
inhibitor's `struct wlr_surface*`. However, in practice the pointed-to
data seems to be invalid, causing a crash (e.g.
qtile/qtile#3361).

The data does not seem to be used by any compositor so until it is
needed we can probably get away without the wrapper, resolving the
problem.
@flacjacket
Copy link
Owner

Nice catch, thanks!

@flacjacket flacjacket merged commit 0d4bc80 into flacjacket:main Feb 23, 2022
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.

None yet

2 participants