Chase wlroots: xdg-decoration now references a toplevel

Chases: bdc34401ba8e4a59b3464c17fa5acf43ca417e57
xdg-decoration: store an xdg_toplevel instead of xdg_surface
This commit is contained in:
Consolatis 2023-08-21 17:59:22 +02:00 committed by Johan Malm
parent 5292504d4a
commit 1626092639
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ static void
xdg_toplevel_decoration(struct wl_listener *listener, void *data) xdg_toplevel_decoration(struct wl_listener *listener, void *data)
{ {
struct wlr_xdg_toplevel_decoration_v1 *wlr_xdg_decoration = data; struct wlr_xdg_toplevel_decoration_v1 *wlr_xdg_decoration = data;
struct wlr_xdg_surface *xdg_surface = wlr_xdg_decoration->surface; struct wlr_xdg_surface *xdg_surface = wlr_xdg_decoration->toplevel->base;
if (!xdg_surface || !xdg_surface->data) { if (!xdg_surface || !xdg_surface->data) {
wlr_log(WLR_ERROR, wlr_log(WLR_ERROR,
"Invalid surface supplied for xdg decorations"); "Invalid surface supplied for xdg decorations");

View file

@ -1,6 +1,6 @@
[wrap-git] [wrap-git]
url = https://gitlab.freedesktop.org/wlroots/wlroots.git url = https://gitlab.freedesktop.org/wlroots/wlroots.git
revision = 657ca2205ff4d5f70cf294d9b5720acf2eaf76b4 revision = bdc34401ba8e4a59b3464c17fa5acf43ca417e57
[provide] [provide]
dependency_names = wlroots dependency_names = wlroots