mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
chase wlroots: wlr_xdg_surface_get_geometry remove MR 4788
Ref: 5c98d1a04a1439bf40c6e516086cfaff2d67f135
("xdg-surface: fix window geometry handling")
This commit is contained in:
parent
261126fcd0
commit
1dc4e7ed28
4 changed files with 9 additions and 15 deletions
|
|
@ -149,8 +149,7 @@ handle_commit(struct wl_listener *listener, void *data)
|
|||
return;
|
||||
}
|
||||
|
||||
struct wlr_box size;
|
||||
wlr_xdg_surface_get_geometry(xdg_surface, &size);
|
||||
struct wlr_box size = xdg_surface->geometry;
|
||||
bool update_required = false;
|
||||
|
||||
/*
|
||||
|
|
@ -727,10 +726,8 @@ xdg_toplevel_view_map(struct view *view)
|
|||
* dimensions remain zero until handle_commit().
|
||||
*/
|
||||
if (wlr_box_empty(&view->pending)) {
|
||||
struct wlr_box size;
|
||||
wlr_xdg_surface_get_geometry(xdg_surface, &size);
|
||||
view->pending.width = size.width;
|
||||
view->pending.height = size.height;
|
||||
view->pending.width = xdg_surface->geometry.width;
|
||||
view->pending.height = xdg_surface->geometry.height;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue