mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
view: read xwayland_surface->{w,h} in .commit
This commit is contained in:
parent
17f7ef53be
commit
db02ef86b1
1 changed files with 2 additions and 2 deletions
|
|
@ -37,8 +37,8 @@ struct wlr_box view_get_surface_geometry(struct view *view)
|
||||||
wlr_xdg_surface_get_geometry(view->xdg_surface, &box);
|
wlr_xdg_surface_get_geometry(view->xdg_surface, &box);
|
||||||
break;
|
break;
|
||||||
case LAB_XWAYLAND_VIEW:
|
case LAB_XWAYLAND_VIEW:
|
||||||
box.width = view->xwayland_surface->width;
|
box.width = view->w;
|
||||||
box.height = view->xwayland_surface->height;
|
box.height = view->h;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return box;
|
return box;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue