container: Remove useless surface dimensions

The adjustments to resize logic left them unnecessary.
This commit is contained in:
Kenny Levinsen 2020-06-03 14:39:12 +02:00 committed by Simon Ser
parent 7670f1a521
commit 5a4a7bc0da
6 changed files with 8 additions and 15 deletions

View file

@ -282,10 +282,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
} else {
struct wlr_box new_geo;
wlr_xdg_surface_get_geometry(xdg_surface, &new_geo);
struct sway_container *con = view->container;
if ((new_geo.width != con->surface_width ||
new_geo.height != con->surface_height)) {
if ((new_geo.width != view->geometry.width ||
new_geo.height != view->geometry.height)) {
// The view has unexpectedly sent a new size
desktop_damage_view(view);
view_update_size(view, new_geo.width, new_geo.height);