mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
wayland: wayl_win_destroy(): unmap windows before destroying
This will trigger e.d. keyboard_leave() and wl_pointer_leave() events, which ensures there aren't any references to the destroyed window from the global wayland struct. Call wl_display_roundtrip() to trigger those events *before* we destroy the window.
This commit is contained in:
parent
66b2097275
commit
95b7c405d4
2 changed files with 23 additions and 0 deletions
|
|
@ -72,7 +72,9 @@ struct wl_primary {
|
|||
uint32_t serial;
|
||||
};
|
||||
|
||||
struct wayland;
|
||||
struct wl_window {
|
||||
struct wayland *wayl;
|
||||
struct wl_surface *surface;
|
||||
struct xdg_surface *xdg_surface;
|
||||
struct xdg_toplevel *xdg_toplevel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue