]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: read xwayland_surface->{w,h} in .commit
authorJohan Malm <jgm323@gmail.com>
Mon, 7 Sep 2020 19:08:55 +0000 (20:08 +0100)
committerJohan Malm <jgm323@gmail.com>
Mon, 7 Sep 2020 19:08:55 +0000 (20:08 +0100)
src/view.c

index 74e26d28439fe4c56d24ef9ab00b4f0662332968..ef97b50719ded80ef2a84d0102f290495aa42b3c 100644 (file)
@@ -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;