Updates per wlroots#1076

This commit is contained in:
Drew DeVault 2018-07-01 09:46:02 -04:00 committed by emersion
parent dd869c158e
commit d43500831a
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
5 changed files with 16 additions and 16 deletions

View file

@ -251,8 +251,8 @@ static void handle_map(struct wl_listener *listener, void *data) {
view->natural_width = view->wlr_xdg_surface->geometry.width;
view->natural_height = view->wlr_xdg_surface->geometry.height;
if (!view->natural_width && !view->natural_height) {
view->natural_width = view->wlr_xdg_surface->surface->current->width;
view->natural_height = view->wlr_xdg_surface->surface->current->height;
view->natural_width = view->wlr_xdg_surface->surface->current.width;
view->natural_height = view->wlr_xdg_surface->surface->current.height;
}
view_map(view, view->wlr_xdg_surface->surface);