diff options
author | 2023-08-19 14:30:17 -0600 | |
---|---|---|
committer | 2023-08-19 21:06:26 -0700 | |
commit | 363c57984d08ff54bbf31f567ffcd4addad98753 (patch) | |
tree | 7884f6e3522a04e09af6737b656291aa21c4366d | |
parent | Move contrib/ to separate repository (diff) | |
download | sway-363c57984d08ff54bbf31f567ffcd4addad98753.tar.gz sway-363c57984d08ff54bbf31f567ffcd4addad98753.tar.zst sway-363c57984d08ff54bbf31f567ffcd4addad98753.zip |
chase wlroots!4316
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4316
-rw-r--r-- | sway/xdg_decoration.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/xdg_decoration.c b/sway/xdg_decoration.c index ec9e8d68..f7f5f5ed 100644 --- a/sway/xdg_decoration.c +++ b/sway/xdg_decoration.c | |||
@@ -53,7 +53,7 @@ static void xdg_decoration_handle_request_mode(struct wl_listener *listener, | |||
53 | 53 | ||
54 | void handle_xdg_decoration(struct wl_listener *listener, void *data) { | 54 | void handle_xdg_decoration(struct wl_listener *listener, void *data) { |
55 | struct wlr_xdg_toplevel_decoration_v1 *wlr_deco = data; | 55 | struct wlr_xdg_toplevel_decoration_v1 *wlr_deco = data; |
56 | struct sway_xdg_shell_view *xdg_shell_view = wlr_deco->surface->data; | 56 | struct sway_xdg_shell_view *xdg_shell_view = wlr_deco->toplevel->base->data; |
57 | 57 | ||
58 | struct sway_xdg_decoration *deco = calloc(1, sizeof(*deco)); | 58 | struct sway_xdg_decoration *deco = calloc(1, sizeof(*deco)); |
59 | if (deco == NULL) { | 59 | if (deco == NULL) { |
@@ -79,7 +79,7 @@ struct sway_xdg_decoration *xdg_decoration_from_surface( | |||
79 | struct wlr_surface *surface) { | 79 | struct wlr_surface *surface) { |
80 | struct sway_xdg_decoration *deco; | 80 | struct sway_xdg_decoration *deco; |
81 | wl_list_for_each(deco, &server.xdg_decorations, link) { | 81 | wl_list_for_each(deco, &server.xdg_decorations, link) { |
82 | if (deco->wlr_xdg_decoration->surface->surface == surface) { | 82 | if (deco->wlr_xdg_decoration->toplevel->base->surface == surface) { |
83 | return deco; | 83 | return deco; |
84 | } | 84 | } |
85 | } | 85 | } |