From db02ef86b11a8a9c11979831ad9e78c035625c49 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Mon, 7 Sep 2020 20:08:55 +0100 Subject: [PATCH] view: read xwayland_surface->{w,h} in .commit --- src/view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.c b/src/view.c index 74e26d28..ef97b507 100644 --- a/src/view.c +++ b/src/view.c @@ -37,8 +37,8 @@ struct wlr_box view_get_surface_geometry(struct view *view) wlr_xdg_surface_get_geometry(view->xdg_surface, &box); break; case LAB_XWAYLAND_VIEW: - box.width = view->xwayland_surface->width; - box.height = view->xwayland_surface->height; + box.width = view->w; + box.height = view->h; break; } return box;