Skip to content

Fix crash when overlay surface is destroyed before its role#34

Open
save196 wants to merge 2 commits intoartizirk:masterfrom
save196:master
Open

Fix crash when overlay surface is destroyed before its role#34
save196 wants to merge 2 commits intoartizirk:masterfrom
save196:master

Conversation

@save196
Copy link
Copy Markdown

@save196 save196 commented Feb 24, 2026

Fixes a crash when removing the overlay.

wd_destroy_overlay() could destroy the GTK window (and its underlying wl_surface) before the overlay’s role object (zwlr_layer_surface_v1) was destroyed. This triggers the following error when running with WAYLAND_DEBUG=1:

wl_display#1.error(nil, 4, "surface was destroyed before its role object")

Fixes #17 #23 #30

@save196
Copy link
Copy Markdown
Author

save196 commented Feb 25, 2026

This second commit should fix #18

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.

Crash when turning off output display names

1 participant