aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-01 19:19:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-01 19:19:53 +0000
commit95b7c405d464b0eb04141cbbfe077371f5a9d47c (patch)
tree508a280e69d3aa039638a9186d783e3a863bc35e /wayland.h
parentwayland: wayl_init(): call wl_display_roundtrip() when done (diff)
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.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index d0a8332f..7e7bfd4c 100644
--- a/wayland.h
+++ b/wayland.h
@@ -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;