mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-11-11 15:43:13 +00:00
don't return a freed client for a surface whose toplevel is gone
A client can destroy its xdg_toplevel and keep the xdg_surface. wlroots keeps the role but sets toplevel to NULL, and xdg_surface->data still points to the Client freed by destroynotify(), so e.g. a popup created on that surface made toplevel_from_wlr_surface() read freed memory.
This commit is contained in:
Reference in New Issue
Block a user